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.
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.
source§fn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Ejects the mode and primitive value of the circuit type.
source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.source§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.Auto Trait Implementations§
impl<T> RefUnwindSafe for Constant<T>where T: RefUnwindSafe,
impl<T> Send for Constant<T>where T: Send,
impl<T> Sync for Constant<T>where T: Sync,
impl<T> Unpin for Constant<T>where T: Unpin,
impl<T> UnwindSafe for Constant<T>where T: UnwindSafe,
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