Trait ToBool
lhlist
pub trait ToBool { type Output: Bool; }
Conversion trait for types that have a logical true or false meaning
true
false
type Output: Bool
Conversion output (typically either True or False)
impl ToBool for B1
type Output = True
impl ToBool for B0
type Output = False