Crate moverox_traits

Crate moverox_traits 

Source
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§

AddressTypeTag
BoolTypeTag
U8TypeTag
U16TypeTag
U32TypeTag
U64TypeTag
U128TypeTag
U256TypeTag
VecTypeTag

Enums§

ParseStructTagError
ParseTypeTagError
StructTagError
TypeParamsError
TypeTagError

Traits§

ConstAddress
Struct tag with a constant address.
ConstModule
Struct tag with a constant module.
ConstName
Struct tag with a constant name.
ConstStructTag
MoveDatatype with a constant struct tag.
ConstTypeTag
MoveType with a constant type tag.
HasKey
An oxidized object, i.e., originally a Move type with the key ability.
MoveDatatype
Marker for a Move datatype with its associated struct tag.
MoveDatatypeTag
A specialized Move type tag for datatypes, convertible from/to a generic StructTag by reference.
MoveType
Marker for a Move type with its associated type tag.
MoveTypeTag
A specialized Move type tag, convertible from/to a generic TypeTag by reference.

Derive Macros§

MoveDatatypederive
Derives moverox_traits trait implementations for an oxidized Move datatype.