pub enum PlaintextType<N: Network> {
Literal(LiteralType),
Interface(Identifier<N>),
}
Expand description
A ValueType
defines the type parameter for an entry in an Interface
.
Variants
Literal(LiteralType)
A literal type contains its type name.
The format of the type is <type_name>
.
Interface(Identifier<N>)
An interface type contains its identifier.
The format of the type is <identifier>
.
Trait Implementations
sourceimpl<N: Clone + Network> Clone for PlaintextType<N>
impl<N: Clone + Network> Clone for PlaintextType<N>
sourcefn clone(&self) -> PlaintextType<N>
fn clone(&self) -> PlaintextType<N>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<N: Network> Debug for PlaintextType<N>
impl<N: Network> Debug for PlaintextType<N>
sourceimpl<'de, N: Network> Deserialize<'de> for PlaintextType<N>
impl<'de, N: Network> Deserialize<'de> for PlaintextType<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 plaintext type from a string or bytes.
sourceimpl<N: Network> Display for PlaintextType<N>
impl<N: Network> Display for PlaintextType<N>
sourceimpl<N: Network> From<Identifier<N>> for PlaintextType<N>
impl<N: Network> From<Identifier<N>> for PlaintextType<N>
sourcefn from(interface: Identifier<N>) -> Self
fn from(interface: Identifier<N>) -> Self
Initializes a plaintext type from an interface type.
sourceimpl<N: Network> From<LiteralType> for PlaintextType<N>
impl<N: Network> From<LiteralType> for PlaintextType<N>
sourcefn from(literal: LiteralType) -> Self
fn from(literal: LiteralType) -> Self
Initializes a plaintext type from a literal type.
sourceimpl<N: Network> FromBytes for PlaintextType<N>
impl<N: Network> FromBytes for PlaintextType<N>
sourceimpl<N: Network> FromStr for PlaintextType<N>
impl<N: Network> FromStr for PlaintextType<N>
sourceimpl<N: Hash + Network> Hash for PlaintextType<N>
impl<N: Hash + Network> Hash for PlaintextType<N>
sourceimpl<N: Network> Parser for PlaintextType<N>
impl<N: Network> Parser for PlaintextType<N>
sourcefn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a string into a plaintext type.
sourceimpl<N: PartialEq + Network> PartialEq<PlaintextType<N>> for PlaintextType<N>
impl<N: PartialEq + Network> PartialEq<PlaintextType<N>> for PlaintextType<N>
sourcefn eq(&self, other: &PlaintextType<N>) -> bool
fn eq(&self, other: &PlaintextType<N>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<N: Network> Serialize for PlaintextType<N>
impl<N: Network> Serialize for PlaintextType<N>
sourceimpl<N: Network> ToBytes for PlaintextType<N>
impl<N: Network> ToBytes for PlaintextType<N>
impl<N: Copy + Network> Copy for PlaintextType<N>
impl<N: Eq + Network> Eq for PlaintextType<N>
impl<N: Network> StructuralEq for PlaintextType<N>
impl<N: Network> StructuralPartialEq for PlaintextType<N>
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
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.