Trait gmeta::Type

source ·
pub trait Type: TypeInfo + 'static {
    // Provided methods
    fn is_unit() -> bool { ... }
    fn meta_type() -> MetaType { ... }
    fn register(registry: &mut Registry) -> Option<u32> { ... }
}
Expand description

Trait used to get information about types.

Provided Methods§

source

fn is_unit() -> bool

Return true if type is unit.

source

fn meta_type() -> MetaType

Create MetaType information about type.

source

fn register(registry: &mut Registry) -> Option<u32>

Register type in the registry and return its identifier if it is not the unit type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: TypeInfo + 'static> Type for T