pub struct Element {
pub name: String,
pub attrs: Vec<(String, String)>,
pub children: Vec<Node>,
}Expand description
HTML Element
Fields§
§name: String§attrs: Vec<(String, String)>§children: Vec<Node>Implementations§
Trait Implementations§
Source§impl Editable for Element
impl Editable for Element
Source§impl Htmlifiable for Element
impl Htmlifiable for Element
Source§impl Queryable for Element
impl Queryable for Element
Source§fn query(&self, selector: &Selector) -> Option<&Element>
fn query(&self, selector: &Selector) -> Option<&Element>
Query the node in
self for the given selector. Read moreSource§fn query_all(&self, selector: &Selector) -> Vec<&Element>
fn query_all(&self, selector: &Selector) -> Vec<&Element>
Query all the nodes in
self for the given selector. Read moreAuto Trait Implementations§
impl Freeze for Element
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