Struct sxd_document::dom::Comment
source · pub struct Comment<'d> { /* private fields */ }
Expand description
Information only relevant to humans
Implementations§
source§impl<'d> Comment<'d>
impl<'d> Comment<'d>
pub fn text(&self) -> &'d str
pub fn set_text(&self, new_text: &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<'a, 'd> From<&'a Comment<'d>> for ChildOfElement<'d>
impl<'a, 'd> From<&'a Comment<'d>> for ChildOfElement<'d>
source§fn from(v: &'a Comment<'d>) -> ChildOfElement<'d>
fn from(v: &'a Comment<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'a, 'd> From<&'a Comment<'d>> for ChildOfRoot<'d>
impl<'a, 'd> From<&'a Comment<'d>> for ChildOfRoot<'d>
source§fn from(v: &'a Comment<'d>) -> ChildOfRoot<'d>
fn from(v: &'a Comment<'d>) -> ChildOfRoot<'d>
Converts to this type from the input type.
source§impl<'d> From<Comment<'d>> for ChildOfElement<'d>
impl<'d> From<Comment<'d>> for ChildOfElement<'d>
source§fn from(v: Comment<'d>) -> ChildOfElement<'d>
fn from(v: Comment<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'d> From<Comment<'d>> for ChildOfRoot<'d>
impl<'d> From<Comment<'d>> for ChildOfRoot<'d>
source§fn from(v: Comment<'d>) -> ChildOfRoot<'d>
fn from(v: Comment<'d>) -> ChildOfRoot<'d>
Converts to this type from the input type.