Struct sxd_document::dom::Text
source · pub struct Text<'d> { /* private fields */ }
Expand description
Textual data
Implementations§
source§impl<'d> Text<'d>
impl<'d> Text<'d>
pub fn text(&self) -> &'d str
pub fn set_text(&self, text: &str)
pub fn parent(&self) -> Option<Element<'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 Text<'d>> for ChildOfElement<'d>
impl<'a, 'd> From<&'a Text<'d>> for ChildOfElement<'d>
source§fn from(v: &'a Text<'d>) -> ChildOfElement<'d>
fn from(v: &'a Text<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'d> From<Text<'d>> for ChildOfElement<'d>
impl<'d> From<Text<'d>> for ChildOfElement<'d>
source§fn from(v: Text<'d>) -> ChildOfElement<'d>
fn from(v: Text<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.