Trait re_components::LegacyComponent
source · pub trait LegacyComponent: ArrowField {
// Required method
fn legacy_name() -> ComponentName;
// Provided method
fn field() -> Field { ... }
}
Expand description
A type that can used as a Component of an Entity.
Examples of components include positions and colors.
Required Methods§
sourcefn legacy_name() -> ComponentName
fn legacy_name() -> ComponentName
The name of the component.
Provided Methods§
sourcefn field() -> Field
fn field() -> Field
Create a Field
for this LegacyComponent
.