Enum snarkvm_wasm::program::FinalizeType
pub enum FinalizeType<N>where
N: Network,{
Public(PlaintextType<N>),
Record(Identifier<N>),
ExternalRecord(Locator<N>),
}Variants§
Public(PlaintextType<N>)
A publicly-visible type.
Record(Identifier<N>)
A record type inherits its visibility from the record definition.
ExternalRecord(Locator<N>)
An external record type inherits its visibility from its record definition.
Trait Implementations§
§impl<N> Clone for FinalizeType<N>where
N: Clone + Network,
impl<N> Clone for FinalizeType<N>where
N: Clone + Network,
§fn clone(&self) -> FinalizeType<N>
fn clone(&self) -> FinalizeType<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<N> Debug for FinalizeType<N>where
N: Network,
impl<N> Debug for FinalizeType<N>where
N: Network,
§impl<'de, N> Deserialize<'de> for FinalizeType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for FinalizeType<N>where
N: Network,
§fn deserialize<D>(
deserializer: D
) -> Result<FinalizeType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<FinalizeType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes the finalize type from a string or bytes.
§impl<N> Display for FinalizeType<N>where
N: Network,
impl<N> Display for FinalizeType<N>where
N: Network,
§impl<N> EnumIndex for FinalizeType<N>where
N: Network,
impl<N> EnumIndex for FinalizeType<N>where
N: Network,
fn enum_index(&self) -> usize
§impl<N> From<FinalizeType<N>> for RegisterType<N>where
N: Network,
impl<N> From<FinalizeType<N>> for RegisterType<N>where
N: Network,
§fn from(value: FinalizeType<N>) -> RegisterType<N>
fn from(value: FinalizeType<N>) -> RegisterType<N>
Converts a finalize type to a register type.
§impl<N> FromBytes for FinalizeType<N>where
N: Network,
impl<N> FromBytes for FinalizeType<N>where
N: Network,
§impl<N> FromStr for FinalizeType<N>where
N: Network,
impl<N> FromStr for FinalizeType<N>where
N: Network,
§impl<N> Hash for FinalizeType<N>where
N: Hash + Network,
impl<N> Hash for FinalizeType<N>where
N: Hash + Network,
§impl<N> Parser for FinalizeType<N>where
N: Network,
impl<N> Parser for FinalizeType<N>where
N: Network,
§impl<N> PartialEq<FinalizeType<N>> for FinalizeType<N>where
N: PartialEq<N> + Network,
impl<N> PartialEq<FinalizeType<N>> for FinalizeType<N>where
N: PartialEq<N> + Network,
§fn eq(&self, other: &FinalizeType<N>) -> bool
fn eq(&self, other: &FinalizeType<N>) -> bool
§impl<N> Serialize for FinalizeType<N>where
N: Network,
impl<N> Serialize for FinalizeType<N>where
N: Network,
§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serializes the finalize type into string or bytes.
§impl<N> ToBytes for FinalizeType<N>where
N: Network,
impl<N> ToBytes for FinalizeType<N>where
N: Network,
impl<N> Copy for FinalizeType<N>where
N: Copy + Network,
impl<N> Eq for FinalizeType<N>where
N: Eq + Network,
impl<N> StructuralEq for FinalizeType<N>where
N: Network,
impl<N> StructuralPartialEq for FinalizeType<N>where
N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for FinalizeType<N>where
<N as Environment>::Field: RefUnwindSafe,
impl<N> Send for FinalizeType<N>
impl<N> Sync for FinalizeType<N>
impl<N> Unpin for FinalizeType<N>where
<N as Environment>::Field: Unpin,
impl<N> UnwindSafe for FinalizeType<N>where
<N as Environment>::Field: UnwindSafe,
Blanket Implementations§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more