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§
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>
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.