#[repr(C)]pub struct YXmlEvent { /* private fields */ }Expand description
Event pushed into callbacks registered with yxmlelem_observe function. It contains
all attribute changes made within a scope of corresponding transaction
(see: yxmlelem_event_keys) as well as child XML nodes changes (see: yxmlelem_event_delta)
and navigation data used to identify a YXmlElement instance which triggered this event.
Methods from Deref<Target = XmlEvent>§
sourcepub fn children_changed(&self) -> bool
pub fn children_changed(&self) -> bool
True if any child XML nodes have been changed within bounds of current transaction.
sourcepub fn path(&self) -> VecDeque<PathSegment>
pub fn path(&self) -> VecDeque<PathSegment>
Returns a path from root type down to [XmlElement] instance which emitted this event.
sourcepub fn delta(&self, txn: &TransactionMut<'_>) -> &[Change]
pub fn delta(&self, txn: &TransactionMut<'_>) -> &[Change]
Returns a summary of XML child nodes changed within corresponding [XmlElement] collection within bounds of current transaction.
sourcepub fn added(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
pub fn added(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
Returns a collection of block identifiers that have been added within a bounds of current transaction.
sourcepub fn deleted(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
pub fn deleted(&self, txn: &TransactionMut<'_>) -> &HashSet<ID>
Returns a collection of block identifiers that have been removed within a 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 [XmlElement] collection within bounds of current transaction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YXmlEvent
impl !RefUnwindSafe for YXmlEvent
impl !Send for YXmlEvent
impl !Sync for YXmlEvent
impl Unpin for YXmlEvent
impl !UnwindSafe for YXmlEvent
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)