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.

Object Safety§

This trait is not object safe.

Implementors§