Trait chunked::component::Component [−][src]
pub unsafe trait Component: Debug + Default + Copy { fn type_id() -> ComponentTypeID; fn layout() -> Layout; }
The component trait is implemented on all component types.
This trait is unsafe, because implementing it and not returning a unique
type_id
can result in other safe functions on Chunks
performing illegal
casts.
Required methods
fn type_id() -> ComponentTypeID
[src]
Get the unique type ID of this component.
fn layout() -> Layout
[src]
Get the memory layout of an instance of this component.