pub enum Body<'a> {
Root,
Element {
name: &'a str,
parent: Box<Body<'a>>,
},
}
Expand description
Representation of the inside of an element or the root level.
This component is made for the Buffer to be aware of where it is and provide adequat functions.
Variants§
Root
This represents the root of the DOM. It has not name nor parents.
Element
This represents any element with a name.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Body<'a>
impl<'a> RefUnwindSafe for Body<'a>
impl<'a> Send for Body<'a>
impl<'a> Sync for Body<'a>
impl<'a> Unpin for Body<'a>
impl<'a> UnwindSafe for Body<'a>
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