Expand description
Traits for rusty Move types and their type tags.
The core items are MoveType and MoveTypeTag. These
are useful trait bounds to use when dealing with generic off-chain Move type representations.
They are implemented for the primitive types that correspond to Move’s primitives
(integers/bool).
For Move structs, MoveDatatype should be used as it has an
associated MoveDatatypeTag. The
MoveDatatype derive macro is exported for automatically
creating a MoveDatatypeTag implementation from normal Rust struct declarations.
Modules§
- prelude
- Re-exports all traits in one place, for easy import.
Structs§
Enums§
Traits§
- Const
Address - Struct tag with a constant address.
- Const
Module - Struct tag with a constant module.
- Const
Name - Struct tag with a constant name.
- Const
Struct Tag MoveDatatypewith a constant struct tag.- Const
Type Tag MoveTypewith a constant type tag.- HasKey
- An oxidized object, i.e., originally a Move type with the
keyability. - Move
Datatype - Marker for a Move datatype with its associated struct tag.
- Move
Datatype Tag - A specialized Move type tag for datatypes, convertible from/to a generic
StructTagby reference. - Move
Type - Marker for a Move type with its associated type tag.
- Move
Type Tag - A specialized Move type tag, convertible from/to a generic
TypeTagby reference.
Derive Macros§
- Move
Datatype derive - Derives
moverox_traitstrait implementations for an oxidized Move datatype.