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 | can be any number in | |
And | needs to contain at least two elements | |
Or | needs to contain at least two elements | |
Not |
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 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
impl Debug for Bool
[src]
Derived Implementations
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