pub enum ASTNodes {
Tag(Box<Tag>),
Comment(Box<Comments>),
Style(Box<Style>),
}Variants§
Tag(Box<Tag>)
§template tag
<template><script><style><any_component>- …
Comment(Box<Comments>)
Style(Box<Style>)
§Style (Properties)
.#&::
Implementations§
Source§impl ASTNodes
impl ASTNodes
pub fn is_tag(&self) -> bool
pub fn is_comment(&self) -> bool
pub fn is_style(&self) -> bool
pub fn set_tag_type(&mut self, ty: CloseType)
pub fn set_tag_properties(&mut self, props: Props)
pub fn set_style_properties(&mut self, props: Props)
pub fn set_properties(&mut self, props: Props)
pub fn extend_properties(&mut self, props: HashMap<PropsKey, Value>)
pub fn get_tag_name(&self) -> &str
pub fn set_tag_children(&mut self, children: Vec<ASTNodes>)
pub fn push_tag_children(&mut self, child: ASTNodes)
pub fn extend_tag_children(&mut self, children: Vec<ASTNodes>)
pub fn set_style_children(&mut self, children: Vec<ASTNodes>)
pub fn set_children(&mut self, children: Vec<ASTNodes>)
pub fn set_tag_parent(&mut self, parent: ASTNodes)
pub fn set_parent(&mut self, parent: ASTNodes)
Sourcepub fn is_tag_close(&self) -> (bool, bool)
pub fn is_tag_close(&self) -> (bool, bool)
first bool is tag? second bool is self closed?
pub fn get_name(&self) -> &str
pub fn is_style_and_prefix(&self) -> String
pub fn is_tag_and_get(&self) -> Option<&Tag>
Trait Implementations§
impl StructuralPartialEq for ASTNodes
Auto Trait Implementations§
impl Freeze for ASTNodes
impl RefUnwindSafe for ASTNodes
impl Send for ASTNodes
impl Sync for ASTNodes
impl Unpin for ASTNodes
impl UnwindSafe for ASTNodes
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