Registry / testing / assert-matches2

assert-matches2

JSON →
library0.1.2rscratesunverified

A version of the assert_matches! macro that brings variables from the pattern into scope.

# Cargo.toml [dependencies] assert_matches2 = "0.1.2"
INSTALL
IMPORT
SIG · ASSERT-MATCHES2
A
assert-matches2
testingrustv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

assert_matches
use assert_matches2::assert_matches;

Using assert_matches! to match and bind variables.

use assert_matches2::assert_matches; fn main() { let value = Some(42); assert_matches!(value, Some(x) => { println!("{}", x); }); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
2
Resources
assert-matches2 — cargo add assert-matches2 · libregistry