Enum koto_parser::StringNode
source · 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: StringFormatOptions
Formatting 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 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 StringNode
impl Debug for StringNode
source§impl PartialEq for StringNode
impl PartialEq for StringNode
source§fn eq(&self, other: &StringNode) -> bool
fn eq(&self, other: &StringNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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