pub struct ProcessingInstruction<'d> { /* private fields */ }Expand description
Metadata relevant to the application, but not the XML processor or humans
Implementations§
Source§impl<'d> ProcessingInstruction<'d>
impl<'d> ProcessingInstruction<'d>
pub fn target(&self) -> &'d str
pub fn value(&self) -> Option<&'d str>
pub fn set_target(&self, new_target: &str)
pub fn set_value(&self, new_value: Option<&str>)
pub fn parent(&self) -> Option<ParentOfChild<'d>>
pub fn remove_from_parent(&self)
pub fn preceding_siblings(&self) -> Vec<ChildOfElement<'d>>
pub fn following_siblings(&self) -> Vec<ChildOfElement<'d>>
Trait Implementations§
Source§impl<'d> Clone for ProcessingInstruction<'d>
impl<'d> Clone for ProcessingInstruction<'d>
Source§fn clone(&self) -> ProcessingInstruction<'d>
fn clone(&self) -> ProcessingInstruction<'d>
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<'d> Debug for ProcessingInstruction<'d>
impl<'d> Debug for ProcessingInstruction<'d>
Source§impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfElement<'d>
impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfElement<'d>
Source§fn from(v: &'a ProcessingInstruction<'d>) -> ChildOfElement<'d>
fn from(v: &'a ProcessingInstruction<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
Source§impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfRoot<'d>
impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfRoot<'d>
Source§fn from(v: &'a ProcessingInstruction<'d>) -> ChildOfRoot<'d>
fn from(v: &'a ProcessingInstruction<'d>) -> ChildOfRoot<'d>
Converts to this type from the input type.
Source§impl<'d> From<ProcessingInstruction<'d>> for ChildOfElement<'d>
impl<'d> From<ProcessingInstruction<'d>> for ChildOfElement<'d>
Source§fn from(v: ProcessingInstruction<'d>) -> ChildOfElement<'d>
fn from(v: ProcessingInstruction<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
Source§impl<'d> From<ProcessingInstruction<'d>> for ChildOfRoot<'d>
impl<'d> From<ProcessingInstruction<'d>> for ChildOfRoot<'d>
Source§fn from(v: ProcessingInstruction<'d>) -> ChildOfRoot<'d>
fn from(v: ProcessingInstruction<'d>) -> ChildOfRoot<'d>
Converts to this type from the input type.
Source§impl<'d> Hash for ProcessingInstruction<'d>
impl<'d> Hash for ProcessingInstruction<'d>
Source§impl<'d> PartialEq for ProcessingInstruction<'d>
impl<'d> PartialEq for ProcessingInstruction<'d>
impl<'d> Copy for ProcessingInstruction<'d>
impl<'d> Eq for ProcessingInstruction<'d>
Auto Trait Implementations§
impl<'d> Freeze for ProcessingInstruction<'d>
impl<'d> !RefUnwindSafe for ProcessingInstruction<'d>
impl<'d> !Send for ProcessingInstruction<'d>
impl<'d> !Sync for ProcessingInstruction<'d>
impl<'d> Unpin for ProcessingInstruction<'d>
impl<'d> !UnwindSafe for ProcessingInstruction<'d>
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