Enum snarkvm_circuit_program::Value
source · Variants
Plaintext(Plaintext<A>)
A plaintext value.
Record(Record<A, Plaintext<A>>)
A record value.
Implementations
Trait Implementations
sourceimpl<A: Aleo> Eject for Value<A>
impl<A: Aleo> Eject for Value<A>
sourcefn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the circuit value.
sourcefn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the circuit value.
type Primitive = Value<<A as Environment>::Network>
fn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Ejects the mode and primitive value of the circuit type. Read more
fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant. Read morefn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private. Read moreAuto Trait Implementations
impl<A> RefUnwindSafe for Value<A>where
<A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<A> !Send for Value<A>
impl<A> !Sync for Value<A>
impl<A> Unpin for Value<A>where
<A as Environment>::BaseField: Unpin,
impl<A> UnwindSafe for Value<A>where
<A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more