Skip to main content

Component

Trait Component 

Source
pub trait Component: 'static { }
Expand description

A value stored on an entity.

This is implemented for every 'static type, so it only serves as documentation and as a bound: it is what keeps a non-'static type from being used as a component.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: 'static> Component for T