Enum mcircuit::CombineOperation [−][src]
pub enum CombineOperation { GF2(Operation<bool>), Z64(Operation<u64>), B2A(usize, usize), SizeHint(usize, usize), }
Variants
Circuit Operation on GF2 Finite Field
Circuit Operation on 64-bit integer ring
Converts a value on GF2 to a value on Z64 Takes: (dst, src) where src is the low bit of the 64-bit GF2 slice This means that the least significant bit of the Z64 value will come from the GF2 wire with the lowest index. Make sure your circuits are designed accordingly.
Information about the number of wires needed to evaluate the circuit. As with B2A, first item is Z64, second is GF2.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
fn translate<'a, I1, I2>(&self, win: I1, wout: I2) -> Option<Self> where
Self: Sized,
I1: Iterator<Item = usize>,
I2: Iterator<Item = usize>,
impl<T: WireValue> Gate<T> for CombineOperation where
CombineOperation: HasConst<T> + Identity<T>,
Auto Trait Implementations
impl RefUnwindSafe for CombineOperation
impl Send for CombineOperation
impl Sync for CombineOperation
impl Unpin for CombineOperation
impl UnwindSafe for CombineOperation
Blanket Implementations
Mutably borrows from an owned value. Read more