Expand description
When working with iterators/futures or other hign-generic types sometimes it’s useful to assert
that type of some expression implements some traits or even cast smt to impl Trait
.
This crate provides macros for both goals — assert_bound
and as_opaque
.
Macros§
- as_
opaque - Cast type to opaque type that implements trait(s) (
impl Trait + Trait2
) - assert_
bound - Assert that expression implements trait(s) at compile-time.