Struct valkyrie_ast::StringLiteralNode
source · pub struct StringLiteralNode {
pub literal: StringTextNode,
pub handler: Option<IdentifierNode>,
}Expand description
handler"text", a string literal with a handler.
Fields§
§literal: StringTextNodeThe raw string of the number.
handler: Option<IdentifierNode>The unit of the number, if any.
Implementations§
source§impl StringLiteralNode
impl StringLiteralNode
sourcepub fn as_raw(&self) -> StringTextNode
pub fn as_raw(&self) -> StringTextNode
Convert to a raw string
sourcepub fn with_handler(self, handler: IdentifierNode) -> Self
pub fn with_handler(self, handler: IdentifierNode) -> Self
Attack a handler to the unit of the number.
Trait Implementations§
source§impl Clone for StringLiteralNode
impl Clone for StringLiteralNode
source§fn clone(&self) -> StringLiteralNode
fn clone(&self) -> StringLiteralNode
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 StringLiteralNode
impl Debug for StringLiteralNode
source§impl Display for StringLiteralNode
impl Display for StringLiteralNode
source§impl From<StringLiteralNode> for ExpressionKind
impl From<StringLiteralNode> for ExpressionKind
source§fn from(o: StringLiteralNode) -> Self
fn from(o: StringLiteralNode) -> Self
Converts to this type from the input type.
source§impl Hash for StringLiteralNode
impl Hash for StringLiteralNode
source§impl PartialEq for StringLiteralNode
impl PartialEq for StringLiteralNode
source§fn eq(&self, other: &StringLiteralNode) -> bool
fn eq(&self, other: &StringLiteralNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ValkyrieNode for StringLiteralNode
impl ValkyrieNode for StringLiteralNode
impl Eq for StringLiteralNode
impl StructuralPartialEq for StringLiteralNode
Auto Trait Implementations§
impl RefUnwindSafe for StringLiteralNode
impl Send for StringLiteralNode
impl Sync for StringLiteralNode
impl Unpin for StringLiteralNode
impl UnwindSafe for StringLiteralNode
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