Macro crayon::declare_component [] [src]

macro_rules! declare_component {
    ( $CMP:ident, $STORAGE:ident ) => { ... };
}

Declare a struct as component, and specify the storage strategy. Internally, this macro will impl a internal trait Component to provide some useful methods and hints.