Enum bytecode_interpreter::concrete::value::BaseValue
source · pub enum BaseValue {
Bool(bool),
Int(BigInt),
Address(AccountAddress),
Signer(AccountAddress),
Vector(Vec<BaseValue>),
Struct(Vec<BaseValue>),
}
Variants§
Bool(bool)
Int(BigInt)
Address(AccountAddress)
Signer(AccountAddress)
Vector(Vec<BaseValue>)
Struct(Vec<BaseValue>)
Implementations§
source§impl BaseValue
impl BaseValue
pub fn mk_bool(v: bool) -> Self
pub fn mk_u8(v: u8) -> Self
pub fn mk_u64(v: u64) -> Self
pub fn mk_u128(v: u128) -> Self
pub fn mk_num(v: BigInt) -> Self
pub fn mk_address(v: AccountAddress) -> Self
pub fn mk_signer(v: AccountAddress) -> Self
pub fn mk_vector(v: Vec<BaseValue>) -> Self
pub fn mk_struct(v: Vec<BaseValue>) -> Self
pub fn into_bool(self) -> bool
pub fn into_u8(self) -> u8
pub fn into_u64(self) -> u64
pub fn into_u128(self) -> u128
pub fn into_num(self) -> BigInt
pub fn into_int(self) -> BigInt
pub fn into_address(self) -> AccountAddress
pub fn into_signer(self) -> AccountAddress
pub fn into_vector(self) -> Vec<BaseValue> ⓘ
pub fn into_struct(self) -> Vec<BaseValue> ⓘ
Trait Implementations§
source§impl Ord for BaseValue
impl Ord for BaseValue
source§impl PartialEq<BaseValue> for BaseValue
impl PartialEq<BaseValue> for BaseValue
source§impl PartialOrd<BaseValue> for BaseValue
impl PartialOrd<BaseValue> for BaseValue
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 BaseValue
impl StructuralEq for BaseValue
impl StructuralPartialEq for BaseValue
Auto Trait Implementations§
impl RefUnwindSafe for BaseValue
impl Send for BaseValue
impl Sync for BaseValue
impl Unpin for BaseValue
impl UnwindSafe for BaseValue
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.