pub enum StringNode {
Literal(ConstantIndex),
Expression {
expression: AstIndex,
format: StringFormatOptions,
},
}Expand description
A node in a string definition
Variants§
Literal(ConstantIndex)
A string literal
Expression
An expression that should be evaluated and inserted into the string
Fields
§
format: StringFormatOptionsFormatting options for the rendered expression
Trait Implementations§
Source§impl Clone for StringNode
impl Clone for StringNode
Source§fn clone(&self) -> StringNode
fn clone(&self) -> StringNode
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 StringNode
impl Debug for StringNode
Source§impl PartialEq for StringNode
impl PartialEq for StringNode
impl Copy for StringNode
impl Eq for StringNode
impl StructuralPartialEq for StringNode
Auto Trait Implementations§
impl Freeze for StringNode
impl RefUnwindSafe for StringNode
impl Send for StringNode
impl Sync for StringNode
impl Unpin for StringNode
impl UnwindSafe for StringNode
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