[][src]Trait refloctopus::Reflect

pub unsafe trait Reflect {
    type Key: 'static;
    pub fn rust_type() -> StaticType;
pub fn register(db: &mut Db<'_>); }

Trait for types which can ponder at runtime and produce a description of themselves.

There is a blanket impl for types which implement StaticReflect.

Associated Types

type Key: 'static[src]

TypeId::of::<R::Key>() is the database index for this type.

Loading content...

Required methods

pub fn rust_type() -> StaticType[src]

pub fn register(db: &mut Db<'_>)[src]

Call this method to register all of the leaf Serialize/Deserialize and Reflect implementations that this type depends on existing.

Loading content...

Implementors

Loading content...