Enum snarkvm_circuit::Value
source · pub enum Value<A>where
A: Aleo,{
Plaintext(Plaintext<A>),
Record(Record<A, Plaintext<A>>),
}
Variants§
Implementations§
Trait Implementations§
source§impl<A> Eject for Value<A>where
A: Aleo,
impl<A> Eject for Value<A>where A: Aleo,
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the circuit value.
type Primitive = Value<<A as Environment>::Network>
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.source§impl<A> Inject for Value<A>where
A: Aleo,
impl<A> Inject for Value<A>where A: Aleo,
Auto 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§
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