pub struct ElementData { /* private fields */ }Expand description
Data carried by an XML element node.
Implementations§
Source§impl ElementData
impl ElementData
pub fn new(name: QName) -> Self
pub fn name(&self) -> &QName
pub fn attributes(&self) -> &[Attribute]
pub fn children(&self) -> &[NodeId]
pub fn namespace_declarations(&self) -> &[NamespaceDeclaration]
Trait Implementations§
Source§impl Clone for ElementData
impl Clone for ElementData
Source§fn clone(&self) -> ElementData
fn clone(&self) -> ElementData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementData
impl Debug for ElementData
impl Eq for ElementData
Source§impl PartialEq for ElementData
impl PartialEq for ElementData
Source§fn eq(&self, other: &ElementData) -> bool
fn eq(&self, other: &ElementData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ElementData
Auto Trait Implementations§
impl Freeze for ElementData
impl RefUnwindSafe for ElementData
impl Send for ElementData
impl Sync for ElementData
impl Unpin for ElementData
impl UnsafeUnpin for ElementData
impl UnwindSafe for ElementData
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