Struct valkyrie_ast::FormatterNode
source · pub struct FormatterNode {
pub terms: Vec<FormatterTerm>,
pub span: Range<u32>,
}
Expand description
"string formatter \n\r {expr:args} \u{1234} "
Aka. String Interpolation
Escape Sequence | Meaning |
---|---|
\n | Line Feed |
\r | Carriage Return |
\t | Horizontal Tab |
\v | Vertical Tab |
\0 | Null |
\\ | Backslash |
\" | Double Quote |
\' | Single Quote |
\u{1234} | Unicode Character |
\x12 | Hexadecimal Character |
\o123 | Octal Character |
\b | Backspace |
Fields§
§terms: Vec<FormatterTerm>
The raw string of the number.
span: Range<u32>
The range of the node
Implementations§
Trait Implementations§
source§impl Clone for FormatterNode
impl Clone for FormatterNode
source§fn clone(&self) -> FormatterNode
fn clone(&self) -> FormatterNode
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 FormatterNode
impl Debug for FormatterNode
source§impl From<FormatterNode> for ExpressionKind
impl From<FormatterNode> for ExpressionKind
source§fn from(o: FormatterNode) -> Self
fn from(o: FormatterNode) -> Self
Converts to this type from the input type.
source§impl Hash for FormatterNode
impl Hash for FormatterNode
source§impl PartialEq for FormatterNode
impl PartialEq for FormatterNode
source§fn eq(&self, other: &FormatterNode) -> bool
fn eq(&self, other: &FormatterNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ValkyrieNode for FormatterNode
impl ValkyrieNode for FormatterNode
impl Eq for FormatterNode
impl StructuralPartialEq for FormatterNode
Auto Trait Implementations§
impl RefUnwindSafe for FormatterNode
impl Send for FormatterNode
impl Sync for FormatterNode
impl Unpin for FormatterNode
impl UnwindSafe for FormatterNode
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