EntityComponent

Trait EntityComponent 

Source
pub trait EntityComponent {
    const CODEC: &'static dyn EntityCodec;
}
Expand description

A trait to implement to component structures that support a codec, this is used by entities! macro in order to reduce boilerplate.

Required Associated Constants§

Source

const CODEC: &'static dyn EntityCodec

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§