Enum snarkvm_wasm::program::LiteralType
pub enum LiteralType {
Show 16 variants
Address,
Boolean,
Field,
Group,
I8,
I16,
I32,
I64,
I128,
U8,
U16,
U32,
U64,
U128,
Scalar,
String,
}Variants
Address
The Aleo address type.
Boolean
The boolean type.
Field
The field type (base field).
Group
The group type (affine).
I8
The 8-bit signed integer type.
I16
The 16-bit signed integer type.
I32
The 32-bit signed integer type.
I64
The 64-bit signed integer type.
I128
The 128-bit signed integer type.
U8
The 8-bit unsigned integer type.
U16
The 16-bit unsigned integer type.
U32
The 32-bit unsigned integer type.
U64
The 64-bit unsigned integer type.
U128
The 128-bit unsigned integer type.
Scalar
The scalar type (scalar field).
String
The string type.
Implementations
impl LiteralType
impl LiteralType
Trait Implementations
impl Clone for LiteralType
impl Clone for LiteralType
fn clone(&self) -> LiteralType
fn clone(&self) -> LiteralType
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 moreimpl Debug for LiteralType
impl Debug for LiteralType
impl<'de> Deserialize<'de> for LiteralType
impl<'de> Deserialize<'de> for LiteralType
fn deserialize<D>(
deserializer: D
) -> Result<LiteralType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<LiteralType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes the literal type from a string or bytes.
impl Display for LiteralType
impl Display for LiteralType
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 FromBytes for LiteralType
impl FromBytes for LiteralType
impl FromPrimitive for LiteralType
impl FromPrimitive for LiteralType
fn from_i64(n: i64) -> Option<LiteralType>
fn from_i64(n: i64) -> Option<LiteralType>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read morefn from_u64(n: u64) -> Option<LiteralType>
fn from_u64(n: u64) -> Option<LiteralType>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl FromStr for LiteralType
impl FromStr for LiteralType
impl Hash for LiteralType
impl Hash for LiteralType
impl Parser for LiteralType
impl Parser for LiteralType
impl PartialEq<LiteralType> for LiteralType
impl PartialEq<LiteralType> for LiteralType
fn eq(&self, other: &LiteralType) -> bool
fn eq(&self, other: &LiteralType) -> bool
impl Serialize for LiteralType
impl Serialize for LiteralType
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 literal type into string or bytes.
impl ToBytes for LiteralType
impl ToBytes for LiteralType
impl Copy for LiteralType
impl Eq for LiteralType
impl StructuralEq for LiteralType
impl StructuralPartialEq for LiteralType
Auto Trait Implementations
impl RefUnwindSafe for LiteralType
impl Send for LiteralType
impl Sync for LiteralType
impl Unpin for LiteralType
impl UnwindSafe for LiteralType
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;