Trait IotaMoveObject
pub trait IotaMoveObject: Sized {
// Required methods
fn try_from_layout(
object: MoveObject,
layout: MoveStructLayout,
) -> Result<Self, Error>;
fn type_(&self) -> &StructTag;
// Provided method
fn try_from(o: MoveObject, resolver: &impl GetModule) -> Result<Self, Error> { ... }
}
Required Methods§
fn try_from_layout( object: MoveObject, layout: MoveStructLayout, ) -> Result<Self, Error>
fn type_(&self) -> &StructTag
Provided Methods§
fn try_from(o: MoveObject, resolver: &impl GetModule) -> Result<Self, Error>
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.