Enum move_ir_types::ast::CopyableVal_
source · pub enum CopyableVal_ {
Address(AccountAddress),
U8(u8),
U64(u64),
U128(u128),
Bool(bool),
ByteArray(Vec<u8>),
}
Expand description
Bottom of the value hierarchy. These values can be trivially copyable and stored in statedb as a single entry.
Variants§
Address(AccountAddress)
An address in the global storage
U8(u8)
An unsigned 8-bit integer
U64(u64)
An unsigned 64-bit integer
U128(u128)
An unsigned 128-bit integer
Bool(bool)
true or false
ByteArray(Vec<u8>)
b"<bytes>"
Trait Implementations§
source§impl Clone for CopyableVal_
impl Clone for CopyableVal_
source§fn clone(&self) -> CopyableVal_
fn clone(&self) -> CopyableVal_
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 moresource§impl Debug for CopyableVal_
impl Debug for CopyableVal_
source§impl Display for CopyableVal_
impl Display for CopyableVal_
source§impl PartialEq<CopyableVal_> for CopyableVal_
impl PartialEq<CopyableVal_> for CopyableVal_
source§fn eq(&self, other: &CopyableVal_) -> bool
fn eq(&self, other: &CopyableVal_) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.