Trait phollaits::BoolExtensions[][src]

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

Trait contains some extensions for bool.

Required methods

method to reverse the value of a bool.

Example

extern crate phollaits;
use phollaits::{BoolExtensions};

fn main() {
	let mut a = true;
	a.reverse();
	assert_eq!(a, false);
}

Implementations on Foreign Types

Implementors