Type Definition And
core_extensions::type_level_bool
type And<L, R> = <L as BitAnd<R>>::Output;
Ands two Booleans
And
This type alias takes Boolean parameters and evaluates to either True or False.
assert_eq!(And::<True ,True >::VALUE,true); assert_eq!(And::<False,True >::VALUE,false); assert_eq!(And::<True ,False>::VALUE,false); assert_eq!(And::<False,False>::VALUE,false);