pub struct XmlComment { /* private fields */ }Expand description
XML comment content.
Implementations§
Source§impl XmlComment
impl XmlComment
Sourcepub fn from_chars(text: Vec<char>) -> Self
pub fn from_chars(text: Vec<char>) -> Self
Creates a new comment node from a character array.
Sourcepub fn content_equals(&self, other: &XmlComment) -> bool
pub fn content_equals(&self, other: &XmlComment) -> bool
Tests content equality using MD5 hash comparison.
Sourcepub fn content_hash(&self) -> i32
pub fn content_hash(&self) -> i32
Returns a 32-bit hash code for this comment node.
Trait Implementations§
Source§impl Clone for XmlComment
impl Clone for XmlComment
Source§fn clone(&self) -> XmlComment
fn clone(&self) -> XmlComment
Returns a duplicate 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 Debug for XmlComment
impl Debug for XmlComment
Auto Trait Implementations§
impl Freeze for XmlComment
impl RefUnwindSafe for XmlComment
impl Send for XmlComment
impl Sync for XmlComment
impl Unpin for XmlComment
impl UnsafeUnpin for XmlComment
impl UnwindSafe for XmlComment
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