Trait phollaits::BoolExtensions[][src]

pub trait BoolExtensions {
    fn reverse(&mut self);
}

Trait contains some extensions for bool.

Required methods

fn reverse(&mut self)[src]

method to reverse the value of a bool.

Example

fn main() {
	let a = true;
	a.reverse();
	asserteq!(a, false);
}
Loading content...

Implementations on Foreign Types

impl BoolExtensions for bool[src]

Loading content...

Implementors

Loading content...