pub struct XHtmlElement<'html> {
pub name: &'html str,
pub id: Option<&'html str>,
pub class: Option<&'html str>,
pub attributes: &'html [Attribute<'html>],
}Expand description
Fields§
§name: &'html strThe tag name (e.g. "div", "a", "section").
id: Option<&'html str>The value of the id attribute, if present.
class: Option<&'html str>The value of the class attribute, if present.
attributes: &'html [Attribute<'html>]Slice of additional attributes (excludes id and class).
Implementations§
Trait Implementations§
Source§impl<'html> Clone for XHtmlElement<'html>
impl<'html> Clone for XHtmlElement<'html>
Source§fn clone(&self) -> XHtmlElement<'html>
fn clone(&self) -> XHtmlElement<'html>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'html> Debug for XHtmlElement<'html>
impl<'html> Debug for XHtmlElement<'html>
Source§impl<'html> Default for XHtmlElement<'html>
impl<'html> Default for XHtmlElement<'html>
Source§fn default() -> XHtmlElement<'html>
fn default() -> XHtmlElement<'html>
Returns the “default value” for a type. Read more
Source§impl<'html> PartialEq for XHtmlElement<'html>
impl<'html> PartialEq for XHtmlElement<'html>
impl<'html> StructuralPartialEq for XHtmlElement<'html>
Auto Trait Implementations§
impl<'html> Freeze for XHtmlElement<'html>
impl<'html> RefUnwindSafe for XHtmlElement<'html>
impl<'html> Send for XHtmlElement<'html>
impl<'html> Sync for XHtmlElement<'html>
impl<'html> Unpin for XHtmlElement<'html>
impl<'html> UnsafeUnpin for XHtmlElement<'html>
impl<'html> UnwindSafe for XHtmlElement<'html>
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