pub struct EntityState {
pub attributes: IndexMap<AttributeId, ResolvedValue>,
pub facts: IndexMap<AttributeId, Vec<ResolvedFact>>,
}Fields§
§attributes: IndexMap<AttributeId, ResolvedValue>§facts: IndexMap<AttributeId, Vec<ResolvedFact>>Implementations§
Source§impl EntityState
impl EntityState
pub fn attribute(&self, id: &AttributeId) -> Option<&ResolvedValue>
pub fn facts(&self, id: &AttributeId) -> &[ResolvedFact]
Trait Implementations§
Source§impl Clone for EntityState
impl Clone for EntityState
Source§fn clone(&self) -> EntityState
fn clone(&self) -> EntityState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntityState
impl Debug for EntityState
Source§impl Default for EntityState
impl Default for EntityState
Source§fn default() -> EntityState
fn default() -> EntityState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntityState
impl<'de> Deserialize<'de> for EntityState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EntityState
impl PartialEq for EntityState
Source§impl Serialize for EntityState
impl Serialize for EntityState
impl StructuralPartialEq for EntityState
Auto Trait Implementations§
impl Freeze for EntityState
impl RefUnwindSafe for EntityState
impl Send for EntityState
impl Sync for EntityState
impl Unpin for EntityState
impl UnwindSafe for EntityState
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