pub trait Component: Loggable {
// Required method
fn name() -> ComponentType;
}
Expand description
A Component
describes semantic data that can be used by any number of Archetype
s.
Implementing the Component
trait automatically derives the ComponentBatch
implementation,
which makes it possible to work with lists’ worth of data in a generic fashion.
Required Methods§
Sourcefn name() -> ComponentType
fn name() -> ComponentType
The fully-qualified type of this component, e.g. rerun.components.Position2D
.
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.