pub struct Element<'a> {
pub tag_name: &'a str,
pub properties: ArenaVec<'a, Property<'a>>,
pub children: ArenaVec<'a, Node<'a>>,
pub position: Option<Position<'a>>,
pub data: Option<&'a Data<'a>>,
pub content: Option<&'a Root<'a>>,
}Expand description
An element.
Fields§
§tag_name: &'a str§properties: ArenaVec<'a, Property<'a>>§children: ArenaVec<'a, Node<'a>>§position: Option<Position<'a>>§data: Option<&'a Data<'a>>unist’s data, when the node carries any.
content: Option<&'a Root<'a>>A template’s contents, which hast keeps out of its children.
Trait Implementations§
impl<'a> StructuralPartialEq for Element<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Element<'a>
impl<'a> !Send for Element<'a>
impl<'a> !Sync for Element<'a>
impl<'a> !UnwindSafe for Element<'a>
impl<'a> Freeze for Element<'a>
impl<'a> Unpin for Element<'a>
impl<'a> UnsafeUnpin for Element<'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