Skip to main content

Component

Trait Component 

Source
pub trait Component: Sized + 'static {
    type Tracking: Tracking;
}
Available on crate feature thread_local only.
Expand description

Indicates that a struct or enum can be store in the World.

Required Associated Types§

Source

type Tracking: Tracking

Kind of event to track for this component.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§