pub struct XmlProcessingInstruction { /* private fields */ }Expand description
XML processing instruction content.
Implementations§
Source§impl XmlProcessingInstruction
impl XmlProcessingInstruction
Sourcepub fn new(target: &str, content: &str) -> Self
pub fn new(target: &str, content: &str) -> Self
Creates a new PI from target and content strings.
Sourcepub fn content_equals(&self, other: &XmlProcessingInstruction) -> bool
pub fn content_equals(&self, other: &XmlProcessingInstruction) -> 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 PI node.
Trait Implementations§
Source§impl Clone for XmlProcessingInstruction
impl Clone for XmlProcessingInstruction
Source§fn clone(&self) -> XmlProcessingInstruction
fn clone(&self) -> XmlProcessingInstruction
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 XmlProcessingInstruction
impl Debug for XmlProcessingInstruction
Auto Trait Implementations§
impl Freeze for XmlProcessingInstruction
impl RefUnwindSafe for XmlProcessingInstruction
impl Send for XmlProcessingInstruction
impl Sync for XmlProcessingInstruction
impl Unpin for XmlProcessingInstruction
impl UnwindSafe for XmlProcessingInstruction
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