pub enum EntryType<N: Network> {
Constant(PlaintextType<N>),
Public(PlaintextType<N>),
Private(PlaintextType<N>),
}
Variants
Constant(PlaintextType<N>)
A constant type.
Public(PlaintextType<N>)
A publicly-visible type.
Private(PlaintextType<N>)
A private type.
Trait Implementations
sourceimpl<'de, N: Network> Deserialize<'de> for EntryType<N>
impl<'de, N: Network> Deserialize<'de> for EntryType<N>
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the entry type from a string or bytes.
sourceimpl<N: Network> Parser for EntryType<N>
impl<N: Network> Parser for EntryType<N>
sourcefn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a string into the entry type.
sourceimpl<N: PartialEq + Network> PartialEq<EntryType<N>> for EntryType<N>
impl<N: PartialEq + Network> PartialEq<EntryType<N>> for EntryType<N>
impl<N: Copy + Network> Copy for EntryType<N>
impl<N: Eq + Network> Eq for EntryType<N>
impl<N: Network> StructuralEq for EntryType<N>
impl<N: Network> StructuralPartialEq for EntryType<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for EntryType<N> where
<N as Environment>::Field: RefUnwindSafe,
impl<N> Send for EntryType<N>
impl<N> Sync for EntryType<N>
impl<N> Unpin for EntryType<N> where
<N as Environment>::Field: Unpin,
impl<N> UnwindSafe for EntryType<N> where
<N as Environment>::Field: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
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.