Struct valkyrie_ast::TemplateNode
source · pub struct TemplateNode {
pub items: Vec<StatementKind>,
pub span: Range<u32>,
}Expand description
t"template string with {slot + 1:X?}"
Fields§
§items: Vec<StatementKind>The raw string of the number.
span: Range<u32>The range of the node
Trait Implementations§
source§impl Clone for TemplateNode
impl Clone for TemplateNode
source§fn clone(&self) -> TemplateNode
fn clone(&self) -> TemplateNode
Returns a copy 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 TemplateNode
impl Debug for TemplateNode
source§impl Hash for TemplateNode
impl Hash for TemplateNode
source§impl PartialEq for TemplateNode
impl PartialEq for TemplateNode
source§fn eq(&self, other: &TemplateNode) -> bool
fn eq(&self, other: &TemplateNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for TemplateNode
impl StructuralPartialEq for TemplateNode
Auto Trait Implementations§
impl RefUnwindSafe for TemplateNode
impl Send for TemplateNode
impl Sync for TemplateNode
impl Unpin for TemplateNode
impl UnwindSafe for TemplateNode
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