Struct move_vm_types::values::values_impl::Value
source · pub struct Value(_);
Expand description
A Move value – a wrapper around ValueImpl
which can be created only through valid
means.
Implementations§
source§impl Value
impl Value
pub fn as_move_value(&self, layout: &MoveTypeLayout) -> MoveValue
source§impl Value
impl Value
pub fn copy_value(&self) -> PartialVMResult<Self>
source§impl Value
impl Value
pub fn u8(x: u8) -> Self
pub fn u64(x: u64) -> Self
pub fn u128(x: u128) -> Self
pub fn bool(x: bool) -> Self
pub fn address(x: AccountAddress) -> Self
pub fn signer(x: AccountAddress) -> Self
sourcepub fn signer_reference(x: AccountAddress) -> Self
pub fn signer_reference(x: AccountAddress) -> Self
Create a “unowned” reference to a signer value (&signer) for populating the &signer in execute function