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