Struct snarkvm_circuit::helpers::circuit_type::Constant
source · pub struct Constant<T>(_)
where
T: Eject;
Expand description
Wrapper struct for circuits whose mode is constant.
Implementations§
Trait Implementations§
source§impl<T> Eject for Constant<T>where
T: Eject,
impl<T> Eject for Constant<T>where
T: Eject,
type Primitive = <T as Eject>::Primitive
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the circuit type. Read more
source§fn eject_value(&self) -> <Constant<T> as Eject>::Primitive
fn eject_value(&self) -> <Constant<T> as Eject>::Primitive
Ejects the circuit type as a primitive value. Read more
source§fn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Ejects the mode and primitive value of the circuit type. Read more
source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant. Read moresource§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private. Read more