Struct yrs::types::array::ArrayEvent
source · pub struct ArrayEvent { /* private fields */ }Expand description
Event generated by ArrayRef::observe method. Emitted during transaction commit phase.
Implementations§
source§impl ArrayEvent
impl ArrayEvent
sourcepub fn path(&self) -> Path
pub fn path(&self) -> Path
Returns a path from root type down to ArrayRef instance which emitted this event.
sourcepub fn delta(&self, txn: &TransactionMut<'_>) -> &[Change]
pub fn delta(&self, txn: &TransactionMut<'_>) -> &[Change]
Returns summary of changes made over corresponding ArrayRef collection within a bounds of current transaction.
sourcepub fn inserts(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
pub fn inserts(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
Returns a collection of block identifiers that have been added within a bounds of current transaction.
sourcepub fn removes(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
pub fn removes(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
Returns a collection of block identifiers that have been removed within a bounds of current transaction.
Trait Implementations§
source§impl AsRef<ArrayEvent> for Event
impl AsRef<ArrayEvent> for Event
source§fn as_ref(&self) -> &ArrayEvent
fn as_ref(&self) -> &ArrayEvent
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl !Freeze for ArrayEvent
impl !RefUnwindSafe for ArrayEvent
impl !Send for ArrayEvent
impl !Sync for ArrayEvent
impl Unpin for ArrayEvent
impl !UnwindSafe for ArrayEvent
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