pub enum Child {
Element(Element),
Text(Vec<TextPart>, Pos),
}Expand description
What an element holds: an element, or the text between two tags.
Variants§
Element(Element)
An element inside it.
Text(Vec<TextPart>, Pos)
The text between two tags and the props written in it, collapsed as JSX does, and where it starts.
Trait Implementations§
impl StructuralPartialEq for Child
Auto Trait Implementations§
impl Forget for Child
impl Freeze for Child
impl RefUnwindSafe for Child
impl Send for Child
impl Sync for Child
impl Unpin for Child
impl UnsafeUnpin for Child
impl UnwindSafe for Child
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