pub enum GateKind {
And,
Or,
Not,
Input(usize),
Const(bool),
}Expand description
Evaluate a Boolean circuit represented as a DAG.
Gates: 0 = AND, 1 = OR, 2 = NOT, 3 = INPUT (index stored in left).
Variants§
Trait Implementations§
impl Copy for GateKind
impl Eq for GateKind
impl StructuralPartialEq for GateKind
Auto Trait Implementations§
impl Freeze for GateKind
impl RefUnwindSafe for GateKind
impl Send for GateKind
impl Sync for GateKind
impl Unpin for GateKind
impl UnsafeUnpin for GateKind
impl UnwindSafe for GateKind
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