macro_rules! assert_val_impl_trait {
($check:expr, $trait:path $(,)?) => { ... };
}
Expand description
Asserts that the type of the expression implements the given trait.
Example:
let x: u32 = 0;
assert_val_impl_trait!(x, Clone);
macro_rules! assert_val_impl_trait {
($check:expr, $trait:path $(,)?) => { ... };
}
Asserts that the type of the expression implements the given trait.
Example:
let x: u32 = 0;
assert_val_impl_trait!(x, Clone);