pub trait MoveType:
Clone
+ Debug
+ Display
+ for<'de> Deserialize<'de>
+ Serialize
+ PartialEq
+ Eq
+ Hash {
type TypeTag: MoveTypeTag;
// Provided methods
fn from_bcs(bytes: &[u8]) -> Result<Self> { ... }
fn into_bcs(self) -> Result<Vec<u8>> { ... }
fn to_bcs(&self) -> Result<Vec<u8>> { ... }
fn into_json(self) -> Value { ... }
fn to_json(&self) -> Value { ... }
}Expand description
Trait marking a Move data type. Has a specific way to construct a TypeTag.
Required Associated Types§
type TypeTag: MoveTypeTag
Provided Methods§
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.