Enum snarkvm_circuit::Entry
source · pub enum Entry<A, Private>where
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, Private> Clone for Entry<A, Private>where
A: Clone + Aleo,
Private: Clone + Visibility<A>,
impl<A, Private> Clone for Entry<A, Private>where A: Clone + Aleo, Private: Clone + Visibility<A>,
source§impl<A> Eject for Entry<A, Ciphertext<A>>where
A: Aleo,
impl<A> Eject for Entry<A, Ciphertext<A>>where A: Aleo,
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the entry.
source§fn eject_value(&self) -> <Entry<A, Ciphertext<A>> as Eject>::Primitive
fn eject_value(&self) -> <Entry<A, Ciphertext<A>> as Eject>::Primitive
Ejects the entry.
type Primitive = Entry<<A as Environment>::Network, Ciphertext<<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> Eject for Entry<A, Plaintext<A>>where
A: Aleo,
impl<A> Eject for Entry<A, Plaintext<A>>where A: Aleo,
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the entry.
type Primitive = Entry<<A as Environment>::Network, Plaintext<<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, Private> Equal<Entry<A, Private>> for Entry<A, Private>where
A: Aleo,
Private: Visibility<A>,
impl<A, Private> Equal<Entry<A, Private>> for Entry<A, Private>where A: Aleo, Private: Visibility<A>,
source§fn is_equal(
&self,
other: &Entry<A, Private>
) -> <Entry<A, Private> as Equal<Entry<A, Private>>>::Output
fn is_equal( &self, other: &Entry<A, Private> ) -> <Entry<A, Private> as Equal<Entry<A, Private>>>::Output
Returns true
if self
and other
are equal.
source§fn is_not_equal(
&self,
other: &Entry<A, Private>
) -> <Entry<A, Private> as Equal<Entry<A, Private>>>::Output
fn is_not_equal( &self, other: &Entry<A, Private> ) -> <Entry<A, Private> as Equal<Entry<A, Private>>>::Output
Returns true
if self
and other
are not equal.
type Output = Boolean<A>
source§impl<A> Inject for Entry<A, Ciphertext<A>>where
A: Aleo,
impl<A> Inject for Entry<A, Ciphertext<A>>where A: Aleo,
source§fn new(
mode: Mode,
plaintext: <Entry<A, Ciphertext<A>> as Inject>::Primitive
) -> Entry<A, Ciphertext<A>>
fn new( mode: Mode, plaintext: <Entry<A, Ciphertext<A>> as Inject>::Primitive ) -> Entry<A, Ciphertext<A>>
Initializes a new ciphertext entry from a primitive.
type Primitive = Entry<<A as Environment>::Network, Ciphertext<<A as Environment>::Network>>
source§impl<A> Inject for Entry<A, Plaintext<A>>where
A: Aleo,
impl<A> Inject for Entry<A, Plaintext<A>>where A: Aleo,
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