pub fn into<'a, In, Out>() -> Matcher<'a, In, Out>where
In: 'a,
Out: From<In> + 'a,
Expand description
Infallibly convert the input value via From
/Into
.
This does the same thing as Assertion::into
.
This matcher always succeeds, even when negated. Therefore negating it has no effect.
Examples
use xpct::{expect, equal, into};
expect!(41u32)
.to(into::<_, u64>())
.to(equal(41u64));