Struct yrs::types::xml::XmlTextEvent
source · pub struct XmlTextEvent { /* private fields */ }
Expand description
Event generated by [XmlText::observe] method. Emitted during transaction commit phase.
Implementations§
source§impl XmlTextEvent
impl XmlTextEvent
sourcepub fn target(&self) -> &XmlTextRef
pub fn target(&self) -> &XmlTextRef
Returns a [XmlText] instance which emitted this event.
sourcepub fn path(&self) -> Path
pub fn path(&self) -> Path
Returns a path from root type down to [XmlText] instance which emitted this event.
sourcepub fn delta(&self, txn: &TransactionMut<'_>) -> &[Delta]
pub fn delta(&self, txn: &TransactionMut<'_>) -> &[Delta]
Returns a summary of text changes made over corresponding [XmlText] collection within bounds of current transaction.
sourcepub fn keys(&self, txn: &TransactionMut<'_>) -> &HashMap<Arc<str>, EntryChange>
pub fn keys(&self, txn: &TransactionMut<'_>) -> &HashMap<Arc<str>, EntryChange>
Returns a summary of attribute changes made over corresponding [XmlText] collection within bounds of current transaction.
Trait Implementations§
source§impl AsRef<XmlTextEvent> for Event
impl AsRef<XmlTextEvent> for Event
source§fn as_ref(&self) -> &XmlTextEvent
fn as_ref(&self) -> &XmlTextEvent
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl !Freeze for XmlTextEvent
impl !RefUnwindSafe for XmlTextEvent
impl !Send for XmlTextEvent
impl !Sync for XmlTextEvent
impl Unpin for XmlTextEvent
impl !UnwindSafe for XmlTextEvent
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