Enum bytecode::stackless_bytecode::Constant
source · pub enum Constant {
Bool(bool),
U8(u8),
U64(u64),
U128(u128),
Address(BigUint),
ByteArray(Vec<u8>),
}
Expand description
A constant value.
Variants§
Trait Implementations§
source§impl Ord for Constant
impl Ord for Constant
source§impl PartialEq<Constant> for Constant
impl PartialEq<Constant> for Constant
source§impl PartialOrd<Constant> for Constant
impl PartialOrd<Constant> for Constant
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Constant
impl StructuralEq for Constant
impl StructuralPartialEq for Constant
Auto Trait Implementations§
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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.