pub struct EntityType {
pub name: &'static str,
pub codecs: &'static [&'static dyn EntityCodec],
}Expand description
A type for static definition of entity types.
Fields§
§name: &'static strThe namespaced name of this entity.
codecs: &'static [&'static dyn EntityCodec]Default data components’ codecs (refer to EntityCodec doc) specifications.
Auto Trait Implementations§
impl Freeze for EntityType
impl !RefUnwindSafe for EntityType
impl Send for EntityType
impl Sync for EntityType
impl Unpin for EntityType
impl !UnwindSafe for EntityType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more