Trait BoolExtensions
Other items inphollaits
pub trait BoolExtensions { fn reverse(&mut self); }
Trait contains some extensions for bool.
fn reverse(&mut self)
method to reverse the value of a bool.
extern crate phollaits; use phollaits::{BoolExtensions}; fn main() { let mut a = true; a.reverse(); assert_eq!(a, false); }
impl BoolExtensions for bool