EntityState

Trait EntityState 

Source
pub trait EntityState<'a, K, V>
where K: AttributeKey<'a>, V: AttributeValue<'a>,
{ type State: EntityStateValue; // Required methods fn get(&self) -> &Self::State; fn get_mut(&mut self) -> &mut Self::State; fn attributes(&self) -> &Attributes<'a, K, V, Self>; fn attributes_mut(&mut self) -> &mut Attributes<'a, K, V, Self>; }

Required Associated Types§

Required Methods§

Source

fn get(&self) -> &Self::State

Source

fn get_mut(&mut self) -> &mut Self::State

Source

fn attributes(&self) -> &Attributes<'a, K, V, Self>

Source

fn attributes_mut(&mut self) -> &mut Attributes<'a, K, V, Self>

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§