Enum snarkvm_wasm::program::Entry
pub enum Entry<N, Private>where
N: Network,
Private: Visibility,{
Constant(Plaintext<N>),
Public(Plaintext<N>),
Private(Private),
}
Expand description
An entry stored in program data.
Variants
Constant(Plaintext<N>)
A constant entry.
Public(Plaintext<N>)
A publicly-visible entry.
Private(Private)
A private entry encrypted under the address of the record owner.
Implementations
Trait Implementations
impl<N, Private> Equal<Entry<N, Private>> for Entry<N, Private>where
N: Network,
Private: Visibility<Boolean = Boolean<N>>,
impl<N, Private> Equal<Entry<N, Private>> for Entry<N, Private>where
N: Network,
Private: Visibility<Boolean = Boolean<N>>,
fn is_equal(
&self,
other: &Entry<N, Private>
) -> <Entry<N, Private> as Equal<Entry<N, Private>>>::Output
fn is_equal(
&self,
other: &Entry<N, Private>
) -> <Entry<N, Private> as Equal<Entry<N, Private>>>::Output
Returns true
if self
and other
are equal.
fn is_not_equal(
&self,
other: &Entry<N, Private>
) -> <Entry<N, Private> as Equal<Entry<N, Private>>>::Output
fn is_not_equal(
&self,
other: &Entry<N, Private>
) -> <Entry<N, Private> as Equal<Entry<N, Private>>>::Output
Returns true
if self
and other
are not equal.
type Output = Boolean<N>
impl<N, Private> FromBytes for Entry<N, Private>where
N: Network,
Private: Visibility,
impl<N, Private> FromBytes for Entry<N, Private>where
N: Network,
Private: Visibility,
impl<N, Private> PartialEq<Entry<N, Private>> for Entry<N, Private>where
N: Network,
Private: Visibility<Boolean = Boolean<N>>,
impl<N, Private> PartialEq<Entry<N, Private>> for Entry<N, Private>where
N: Network,
Private: Visibility<Boolean = Boolean<N>>,
impl<N> ToBits for Entry<N, Ciphertext<N>>where
N: Network,
impl<N> ToBits for Entry<N, Ciphertext<N>>where
N: Network,
impl<N> ToBits for Entry<N, Plaintext<N>>where
N: Network,
impl<N> ToBits for Entry<N, Plaintext<N>>where
N: Network,
impl<N, Private> ToBytes for Entry<N, Private>where
N: Network,
Private: Visibility,
impl<N, Private> ToBytes for Entry<N, Private>where
N: Network,
Private: Visibility,
impl<N, Private> Eq for Entry<N, Private>where
N: Network,
Private: Visibility<Boolean = Boolean<N>>,
Auto Trait Implementations
impl<N, Private> RefUnwindSafe for Entry<N, Private>where
N: RefUnwindSafe,
Private: RefUnwindSafe,
<N as Environment>::Field: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe,
<N as Environment>::Scalar: RefUnwindSafe,
impl<N, Private> Send for Entry<N, Private>where
Private: Send,
impl<N, Private> Sync for Entry<N, Private>where
Private: Sync,
impl<N, Private> Unpin for Entry<N, Private>where
N: Unpin,
Private: Unpin,
<N as Environment>::Field: Unpin,
<N as Environment>::Projective: Unpin,
<N as Environment>::Scalar: Unpin,
impl<N, Private> UnwindSafe for Entry<N, Private>where
N: UnwindSafe,
Private: UnwindSafe,
<N as Environment>::Field: UnwindSafe,
<N as Environment>::Projective: UnwindSafe,
<N as Environment>::Scalar: UnwindSafe,
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;