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>
pub fn path(&self) -> VecDeque<PathSegment>
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 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 moresource§impl Deref for YXmlTextEvent
impl Deref for YXmlTextEvent
impl Copy for YXmlTextEvent
Auto Trait Implementations§
impl Freeze for YXmlTextEvent
impl !RefUnwindSafe for YXmlTextEvent
impl !Send for YXmlTextEvent
impl !Sync for YXmlTextEvent
impl Unpin for YXmlTextEvent
impl !UnwindSafe for YXmlTextEvent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)