pub struct Root<'d> { /* private fields */ }Expand description
The logical ancestor of every other node type
Implementations§
Source§impl<'d> Root<'d>
impl<'d> Root<'d>
pub fn append_child<C>(&self, child: C)where
C: Into<ChildOfRoot<'d>>,
pub fn append_children<I>(&self, children: I)
pub fn replace_children<I>(&self, children: I)
pub fn remove_child<C>(&self, child: C)where
C: Into<ChildOfRoot<'d>>,
pub fn clear_children(&self)
pub fn children(&self) -> Vec<ChildOfRoot<'d>>
Trait Implementations§
impl<'d> Copy for Root<'d>
impl<'d> Eq for Root<'d>
Auto Trait Implementations§
impl<'d> Freeze for Root<'d>
impl<'d> !RefUnwindSafe for Root<'d>
impl<'d> !Send for Root<'d>
impl<'d> !Sync for Root<'d>
impl<'d> Unpin for Root<'d>
impl<'d> !UnwindSafe for Root<'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