Enum quine_mc_cluskey::Bool
[−]
[src]
pub enum Bool { True, False, Term(u8), And(Vec<Bool>), Or(Vec<Bool>), Not(Box<Bool>), }
Variants
True
False
Term(u8)
can be any number in 0..32
, anything else will cause panics or wrong results
And(Vec<Bool>)
needs to contain at least two elements
Or(Vec<Bool>)
needs to contain at least two elements
Not(Box<Bool>)
Methods
impl Bool
[src]
fn terms(&self) -> u32
fn eval(&self, terms: u32) -> bool
fn minterms(&self) -> Vec<Term>
fn simplify(&self) -> Vec<Bool>
Trait Implementations
impl Eq for Bool
[src]
impl Clone for Bool
[src]
fn clone(&self) -> Bool
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Not for Bool
[src]
type Output = Bool
The resulting type after applying the !
operator
fn not(self) -> Bool
The method for the unary !
operator
impl BitAnd for Bool
[src]
type Output = Self
The resulting type after applying the &
operator
fn bitand(self, rhs: Bool) -> Bool
The method for the &
operator
impl BitOr for Bool
[src]
type Output = Self
The resulting type after applying the |
operator
fn bitor(self, rhs: Bool) -> Bool
The method for the |
operator