pub struct Tag {
pub tag: Box<Stmt>,
pub id: Box<Stmt>,
pub classes: Vec<Stmt>,
pub attrs: Vec<(Stmt, Stmt)>,
pub body: Vec<Stmt>,
pub closed: bool,
}
Expand description
Since HTML tags are a bit more involved than IF statements or variable assignment, they have their own data structure. This is still basically just a Stmt, though.
Fields§
§tag: Box<Stmt>
§id: Box<Stmt>
§classes: Vec<Stmt>
§attrs: Vec<(Stmt, Stmt)>
§body: Vec<Stmt>
§closed: bool
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tag
impl !RefUnwindSafe for Tag
impl !Send for Tag
impl !Sync for Tag
impl Unpin for Tag
impl !UnwindSafe for Tag
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