Enum snarkvm_circuit_program::Entry
source · pub enum Entry<A: Aleo, Private: Visibility<A>> {
Constant(Plaintext<A>),
Public(Plaintext<A>),
Private(Private),
}
Expand description
An entry stored in program data.
Variants§
Constant(Plaintext<A>)
A constant entry.
Public(Plaintext<A>)
A publicly-visible entry.
Private(Private)
A private entry encrypted under the address of the record owner.
Implementations§
Trait Implementations§
source§impl<A: Aleo> Eject for Entry<A, Ciphertext<A>>
impl<A: Aleo> Eject for Entry<A, Ciphertext<A>>
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the entry.
source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the entry.
type Primitive = Entry<<A as Environment>::Network, Ciphertext<<A as Environment>::Network>>
§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.source§impl<A: Aleo> Eject for Entry<A, Plaintext<A>>
impl<A: Aleo> Eject for Entry<A, Plaintext<A>>
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the entry.
source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the entry.
type Primitive = Entry<<A as Environment>::Network, Plaintext<<A as Environment>::Network>>
§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.source§impl<A: Aleo> Inject for Entry<A, Ciphertext<A>>
impl<A: Aleo> Inject for Entry<A, Ciphertext<A>>
source§impl<A: Aleo> Inject for Entry<A, Plaintext<A>>
impl<A: Aleo> Inject for Entry<A, Plaintext<A>>
source§impl<A: Aleo> ToBits for Entry<A, Ciphertext<A>>
impl<A: Aleo> ToBits for Entry<A, Ciphertext<A>>
source§fn to_bits_le(&self) -> Vec<Boolean<A>>
fn to_bits_le(&self) -> Vec<Boolean<A>>
Returns this entry as a list of little-endian bits.
source§fn to_bits_be(&self) -> Vec<Boolean<A>>
fn to_bits_be(&self) -> Vec<Boolean<A>>
Returns this entry as a list of big-endian bits.
type Boolean = Boolean<A>
Auto Trait Implementations§
impl<A, Private> RefUnwindSafe for Entry<A, Private>where Private: RefUnwindSafe, <A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<A, Private> !Send for Entry<A, Private>
impl<A, Private> !Sync for Entry<A, Private>
impl<A, Private> Unpin for Entry<A, Private>where Private: Unpin, <A as Environment>::BaseField: Unpin,
impl<A, Private> UnwindSafe for Entry<A, Private>where Private: UnwindSafe, <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