Trait BoolExt
ari
pub trait BoolExt { fn as_option(&self) -> Option<()>; }
extensions to bool.
bool
fn as_option(&self) -> Option<()>
converts a true into Some(()) and false into None.
Some(())
None
impl BoolExt for bool