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.
impl<'d> Copy for Text<'d>
impl<'d> Eq for Text<'d>
Auto Trait Implementations§
impl<'d> Freeze for Text<'d>
impl<'d> !RefUnwindSafe for Text<'d>
impl<'d> !Send for Text<'d>
impl<'d> !Sync for Text<'d>
impl<'d> Unpin for Text<'d>
impl<'d> !UnwindSafe for Text<'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