pub struct Element {
pub name: String,
pub attributes: Vec<(String, Option<String>)>,
pub children: Option<Vec<Node>>,
}
Expand description
An element.
<div class="container">
I'm in an element!
</div>
Fields§
§name: String
The name of the element.
<name>
attributes: Vec<(String, Option<String>)>
The attributes of the element.
<div attribute="value">
children: Option<Vec<Node>>
The children of the element.
<div>
<!-- I'm a child! -->
<child>I'm another child!</child>
</div>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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