pub trait Eject {
type Primitive;
// Required methods
fn eject_mode(&self) -> Mode;
fn eject_value(&self) -> Self::Primitive;
// Provided methods
fn eject(&self) -> (Mode, Self::Primitive) { ... }
fn is_constant(&self) -> bool { ... }
fn is_public(&self) -> bool { ... }
fn is_private(&self) -> bool { ... }
}
Expand description
Operations to eject from a circuit environment into primitive form.
Required Associated Types§
Required Methods§
Sourcefn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the circuit type.
Sourcefn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the circuit type as a primitive value.
Provided Methods§
Sourcefn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Ejects the mode and primitive value of the circuit type.
Sourcefn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns true
if the circuit is a constant.
Sourcefn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns true
if the circuit is a private.
Implementations on Foreign Types§
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject> Eject for &'a (C0, C1, C2, C3)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject> Eject for &'a (C0, C1, C2, C3)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject> Eject for &'a (C0, C1, C2, C3, C4)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject> Eject for &'a (C0, C1, C2, C3, C4)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive, <C8 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive, <C8 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive, <C8 as Eject>::Primitive, <C9 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8, &'a C9)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8, &'a C9)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive, <C8 as Eject>::Primitive, <C9 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive, <C8 as Eject>::Primitive, <C9 as Eject>::Primitive, <C10 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8, &'a C9, &'a C10)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8, &'a C9, &'a C10)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive, <C8 as Eject>::Primitive, <C9 as Eject>::Primitive, <C10 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject, C11: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject, C11: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive, <C8 as Eject>::Primitive, <C9 as Eject>::Primitive, <C10 as Eject>::Primitive, <C11 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject, C11: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8, &'a C9, &'a C10, &'a C11)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject, C11: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8, &'a C9, &'a C10, &'a C11)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive, <C8 as Eject>::Primitive, <C9 as Eject>::Primitive, <C10 as Eject>::Primitive, <C11 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject, C11: Eject, C12: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject, C11: Eject, C12: Eject> Eject for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.
type Primitive = (<C0 as Eject>::Primitive, <C1 as Eject>::Primitive, <C2 as Eject>::Primitive, <C3 as Eject>::Primitive, <C4 as Eject>::Primitive, <C5 as Eject>::Primitive, <C6 as Eject>::Primitive, <C7 as Eject>::Primitive, <C8 as Eject>::Primitive, <C9 as Eject>::Primitive, <C10 as Eject>::Primitive, <C11 as Eject>::Primitive, <C12 as Eject>::Primitive)
Source§impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject, C11: Eject, C12: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8, &'a C9, &'a C10, &'a C11, &'a C12)
impl<'a, C0: Eject, C1: Eject, C2: Eject, C3: Eject, C4: Eject, C5: Eject, C6: Eject, C7: Eject, C8: Eject, C9: Eject, C10: Eject, C11: Eject, C12: Eject> Eject for (&'a C0, &'a C1, &'a C2, &'a C3, &'a C4, &'a C5, &'a C6, &'a C7, &'a C8, &'a C9, &'a C10, &'a C11, &'a C12)
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
A helper method to deduce the mode from a tuple of Eject
circuits.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the value from each circuit.