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.