pub struct HTMLTag {
pub name: String,
pub html: String,
pub attributes: String,
pub state: HTMLTagState,
}Expand description
The HTML tag
§Examples
let tag = HTMLTag {
name: "a".to_string(),
html: "<a href=\"#\">link</a>".to_string(),
attributes: "href=\"#\"".to_string(),
state: HTMLTagState::Opening,
};Fields§
§name: String§html: String§attributes: String§state: HTMLTagStateTrait Implementations§
impl StructuralPartialEq for HTMLTag
Auto Trait Implementations§
impl Freeze for HTMLTag
impl RefUnwindSafe for HTMLTag
impl Send for HTMLTag
impl Sync for HTMLTag
impl Unpin for HTMLTag
impl UnwindSafe for HTMLTag
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