pub enum Operation {
Variable(Rc<String>),
Constant(bool),
Negation(Gate),
Conjunction(Gate, Gate),
Disjunction(Gate, Gate),
Xor(Gate, Gate),
}Expand description
The inner operation of a {Gate} and the predecessors.
Variants§
Variable(Rc<String>)
An input variable.
Constant(bool)
A constant value.
Negation(Gate)
The boolean negation of another gate.
Conjunction(Gate, Gate)
The boolean conjunction of two gates.
Disjunction(Gate, Gate)
The boolean disjunction of two gates.
Xor(Gate, Gate)
The boolean exclusive or of two gates.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl !Send for Operation
impl !Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more