Struct yrs::YXmlTextEvent
source · #[repr(C)]pub struct YXmlTextEvent { /* private fields */ }Expand description
Event pushed into callbacks registered with yxmltext_observe function. It contains
all attribute changes made within a scope of corresponding transaction
(see: yxmltext_event_keys) as well as text edits (see: yxmltext_event_delta)
and navigation data used to identify a YXmlText instance which triggered this event.
Methods from Deref<Target = XmlTextEvent>§
sourcepub fn target(&self) -> &XmlTextRef
pub fn target(&self) -> &XmlTextRef
Returns a [XmlText] instance which emitted this event.
sourcepub fn path(&self) -> VecDeque<PathSegment, Global>
pub fn path(&self) -> VecDeque<PathSegment, Global>
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<Rc<str>, EntryChange, RandomState>
pub fn keys(
&self,
txn: &TransactionMut<'_>
) -> &HashMap<Rc<str>, EntryChange, RandomState>
Returns a summary of attribute changes made over corresponding [XmlText] collection within bounds of current transaction.
Trait Implementations§
source§impl Clone for YXmlTextEvent
impl Clone for YXmlTextEvent
source§fn clone(&self) -> YXmlTextEvent
fn clone(&self) -> YXmlTextEvent
Returns a copy 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 more