Struct sxd_document::dom::ProcessingInstruction
source · 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 copy 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.