pub struct Gate<'a> {
pub kind: GateKind,
pub inputs: &'a [Literal],
}
Expand description
Logical gate including the literals representing its inputs
This enum type includes the phony gate variants False
(representing the
constant false) and Input
(for a circuit input). This is mainly to make
using Circuit::gate()
more ergonomic.
Fields§
§kind: GateKind
§inputs: &'a [Literal]
Trait Implementations§
impl<'a> Copy for Gate<'a>
impl<'a> Eq for Gate<'a>
impl<'a> StructuralPartialEq for Gate<'a>
Auto Trait Implementations§
impl<'a> Freeze for Gate<'a>
impl<'a> RefUnwindSafe for Gate<'a>
impl<'a> Send for Gate<'a>
impl<'a> Sync for Gate<'a>
impl<'a> Unpin for Gate<'a>
impl<'a> UnwindSafe for Gate<'a>
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