identity_iota_interaction

Trait MoveType

Source
pub trait MoveType<T: Serialize = Self>: Serialize {
    // Required method
    fn move_type(package: ObjectID) -> TypeTag;

    // Provided method
    fn get_typed_value(&self, _package: ObjectID) -> TypedValue<'_, Self>
       where Self: MoveType + Sized { ... }
}
Expand description

Trait for types that can be converted to a Move type.

Required Methods§

Source

fn move_type(package: ObjectID) -> TypeTag

Returns the Move type for this type.

Provided Methods§

Source

fn get_typed_value(&self, _package: ObjectID) -> TypedValue<'_, Self>
where Self: MoveType + Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MoveType for bool

Source§

impl MoveType for u8

Source§

impl MoveType for u16

Source§

impl MoveType for u32

Source§

impl MoveType for u64

Source§

impl MoveType for u128

Source§

impl<T: MoveType> MoveType for Vec<T>

Implementors§