Struct yrs::YXmlTextEvent
source · [−]#[repr(C)]pub struct YXmlTextEvent {
pub txn: *const Transaction,
/* 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.
Fields
txn: *const TransactionMethods from Deref<Target = XmlTextEvent>
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: &Transaction) -> &[Delta]
pub fn delta(&self, txn: &Transaction) -> &[Delta]
Returns a summary of text changes made over corresponding XmlText collection within bounds of current transaction.
sourcepub fn keys(
&self,
txn: &Transaction
) -> &HashMap<Rc<str>, EntryChange, RandomState>
pub fn keys(
&self,
txn: &Transaction
) -> &HashMap<Rc<str>, EntryChange, RandomState>
Returns a summary of attribute changes made over corresponding XmlText collection within bounds of current transaction.
Trait Implementations
sourceimpl Clone for YXmlTextEvent
impl Clone for YXmlTextEvent
sourcefn clone(&self) -> YXmlTextEvent
fn clone(&self) -> YXmlTextEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Deref for YXmlTextEvent
impl Deref for YXmlTextEvent
type Target = XmlTextEvent
type Target = XmlTextEvent
The resulting type after dereferencing.
impl Copy for YXmlTextEvent
Auto Trait Implementations
impl !RefUnwindSafe for YXmlTextEvent
impl !Send for YXmlTextEvent
impl !Sync for YXmlTextEvent
impl Unpin for YXmlTextEvent
impl !UnwindSafe for YXmlTextEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more