ink_env::reflect

Trait TraitInfo

pub trait TraitInfo {
    const ID: u32;
    const PATH: &'static str;
    const NAME: &'static str;
}
Expand description

Captures info about an ink! trait definition.

Required Associated Constants§

const ID: u32

The unique id of the ink! trait definition.

const PATH: &'static str

The module path of the ink! trait definition.

This is equivalent to Rust’s builtin module_path! macro invocation at the definition site of the ink! trait.

const NAME: &'static str

The name of the ink! trait.

This is just for convenience.

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.

Implementors§