pub struct InsertTagNode {
pub attrs: HashMap<String, String>,
pub childs: Vec<Element>,
}Expand description
Represents an
Fields§
§attrs: HashMap<String, String>§childs: Vec<Element>Trait Implementations§
Source§impl Clone for InsertTagNode
impl Clone for InsertTagNode
Source§fn clone(&self) -> InsertTagNode
fn clone(&self) -> InsertTagNode
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 Debug for InsertTagNode
impl Debug for InsertTagNode
Source§impl HtmlAstNode for InsertTagNode
impl HtmlAstNode for InsertTagNode
Source§fn node_tag_name() -> &'static str
fn node_tag_name() -> &'static str
Returns the XML tag name for this node type (e.g., “if”, “select”).
Source§fn from_element(element: &Element) -> Self
fn from_element(element: &Element) -> Self
Creates an instance of the node from a generic
Element.
This method will extract necessary attributes and validate them.
Can panic if attributes are missing, similar to original code’s expect().Source§fn generate_tokens<FChildParser>(
&self,
context: &mut NodeContext<'_, FChildParser>,
ignore: &mut Vec<String>,
) -> TokenStream
fn generate_tokens<FChildParser>( &self, context: &mut NodeContext<'_, FChildParser>, ignore: &mut Vec<String>, ) -> TokenStream
Generates the Rust scope).
TokenStream for this specific AST node.
The ignore vector is passed directly to allow modification by calling nodes (e.g. for Auto Trait Implementations§
impl Freeze for InsertTagNode
impl RefUnwindSafe for InsertTagNode
impl Send for InsertTagNode
impl Sync for InsertTagNode
impl Unpin for InsertTagNode
impl UnwindSafe for InsertTagNode
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