Extractable

Trait Extractable 

Source
pub trait Extractable: 'static + Sized {
    const METADATA_LIST: &'static [ExtractionMetadata];
}
Expand description

Trait for types that can be extracted from entity data.

This is typically derived using #[derive(Extractable)].

Required Associated Constants§

Source

const METADATA_LIST: &'static [ExtractionMetadata]

Metadata describing how to extract components from this type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§