pub struct EntityChangeSet { /* private fields */ }Implementations§
Source§impl EntityChangeSet
impl EntityChangeSet
pub fn is_empty(&self) -> bool
pub fn set(&mut self, key: EntityKey, field: impl Into<String>, value: Value)
pub fn get(&self, key: &EntityKey, field: &str) -> Option<&Value>
pub fn changes(&self) -> &BTreeMap<EntityKey, Record>
Sourcepub fn clear_entity(&mut self, key: &EntityKey)
pub fn clear_entity(&mut self, key: &EntityKey)
Remove all pending changes for a specific entity key.
Sourcepub fn field_names(&self, key: &EntityKey) -> BTreeSet<String>
pub fn field_names(&self, key: &EntityKey) -> BTreeSet<String>
Get the set of field names that have been modified for a given entity key.
Trait Implementations§
Source§impl Clone for EntityChangeSet
impl Clone for EntityChangeSet
Source§fn clone(&self) -> EntityChangeSet
fn clone(&self) -> EntityChangeSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EntityChangeSet
impl Debug for EntityChangeSet
Source§impl Default for EntityChangeSet
impl Default for EntityChangeSet
Source§fn default() -> EntityChangeSet
fn default() -> EntityChangeSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for EntityChangeSet
impl PartialEq for EntityChangeSet
Source§fn eq(&self, other: &EntityChangeSet) -> bool
fn eq(&self, other: &EntityChangeSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EntityChangeSet
Auto Trait Implementations§
impl Freeze for EntityChangeSet
impl RefUnwindSafe for EntityChangeSet
impl Send for EntityChangeSet
impl Sync for EntityChangeSet
impl Unpin for EntityChangeSet
impl UnsafeUnpin for EntityChangeSet
impl UnwindSafe for EntityChangeSet
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