Enum snarkvm_wasm::program::PlaintextType
pub enum PlaintextType<N>where
N: Network,{
Literal(LiteralType),
Struct(Identifier<N>),
}Expand description
A ValueType defines the type parameter for an entry in an Struct.
Variants§
Literal(LiteralType)
A literal type contains its type name.
The format of the type is <type_name>.
Struct(Identifier<N>)
An struct type contains its identifier.
The format of the type is <identifier>.
Trait Implementations§
§impl<N> Clone for PlaintextType<N>where
N: Clone + Network,
impl<N> Clone for PlaintextType<N>where
N: Clone + Network,
§fn clone(&self) -> PlaintextType<N>
fn clone(&self) -> PlaintextType<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 PlaintextType<N>where
N: Network,
impl<N> Debug for PlaintextType<N>where
N: Network,
§impl<'de, N> Deserialize<'de> for PlaintextType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for PlaintextType<N>where
N: Network,
§fn deserialize<D>(
deserializer: D
) -> Result<PlaintextType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<PlaintextType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes the plaintext type from a string or bytes.
§impl<N> Display for PlaintextType<N>where
N: Network,
impl<N> Display for PlaintextType<N>where
N: Network,
§impl<N> From<Identifier<N>> for PlaintextType<N>where
N: Network,
impl<N> From<Identifier<N>> for PlaintextType<N>where
N: Network,
§fn from(struct_: Identifier<N>) -> PlaintextType<N>
fn from(struct_: Identifier<N>) -> PlaintextType<N>
Initializes a plaintext type from a struct type.
§impl<N> From<LiteralType> for PlaintextType<N>where
N: Network,
impl<N> From<LiteralType> for PlaintextType<N>where
N: Network,
§fn from(literal: LiteralType) -> PlaintextType<N>
fn from(literal: LiteralType) -> PlaintextType<N>
Initializes a plaintext type from a literal type.
§impl<N> FromBytes for PlaintextType<N>where
N: Network,
impl<N> FromBytes for PlaintextType<N>where
N: Network,
§impl<N> FromStr for PlaintextType<N>where
N: Network,
impl<N> FromStr for PlaintextType<N>where
N: Network,
§impl<N> Hash for PlaintextType<N>where
N: Hash + Network,
impl<N> Hash for PlaintextType<N>where
N: Hash + Network,
§impl<N> Parser for PlaintextType<N>where
N: Network,
impl<N> Parser for PlaintextType<N>where
N: Network,
§impl<N> PartialEq<PlaintextType<N>> for PlaintextType<N>where
N: PartialEq<N> + Network,
impl<N> PartialEq<PlaintextType<N>> for PlaintextType<N>where
N: PartialEq<N> + Network,
§fn eq(&self, other: &PlaintextType<N>) -> bool
fn eq(&self, other: &PlaintextType<N>) -> bool
§impl<N> Serialize for PlaintextType<N>where
N: Network,
impl<N> Serialize for PlaintextType<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 plaintext type into string or bytes.
§impl<N> ToBytes for PlaintextType<N>where
N: Network,
impl<N> ToBytes for PlaintextType<N>where
N: Network,
impl<N> Copy for PlaintextType<N>where
N: Copy + Network,
impl<N> Eq for PlaintextType<N>where
N: Eq + Network,
impl<N> StructuralEq for PlaintextType<N>where
N: Network,
impl<N> StructuralPartialEq for PlaintextType<N>where
N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for PlaintextType<N>where
<N as Environment>::Field: RefUnwindSafe,
impl<N> Send for PlaintextType<N>
impl<N> Sync for PlaintextType<N>
impl<N> Unpin for PlaintextType<N>where
<N as Environment>::Field: Unpin,
impl<N> UnwindSafe for PlaintextType<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