Skip to main content

IEntityType

Trait IEntityType 

Source
pub trait IEntityType:
    Send
    + Sync
    + 'static {
    // Required method
    fn entity_meta() -> EntityTypeMeta
       where Self: Sized;

    // Provided method
    fn entity_meta_instance(&self) -> EntityTypeMeta
       where Self: Sized { ... }
}
Expand description

The core trait that every entity type must implement.

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§