Trait 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§

Source

fn legacy_name() -> ComponentName

The name of the component.

Provided Methods§

Source

fn field() -> Field

Create a Field for this LegacyComponent.

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§