Struct valkyrie_ast::StringTextNode
source · pub struct StringTextNode {
pub text: String,
pub span: Range<u32>,
}
Expand description
Pure text of a string literal.
Fields§
§text: String
The unescaped text of the string.
span: Range<u32>
The range of the node
Implementations§
source§impl StringTextNode
impl StringTextNode
sourcepub fn as_identifier(&self) -> IdentifierNode
pub fn as_identifier(&self) -> IdentifierNode
Convert to an identifier
Trait Implementations§
source§impl Clone for StringTextNode
impl Clone for StringTextNode
source§fn clone(&self) -> StringTextNode
fn clone(&self) -> StringTextNode
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 StringTextNode
impl Debug for StringTextNode
source§impl Default for StringTextNode
impl Default for StringTextNode
source§fn default() -> StringTextNode
fn default() -> StringTextNode
Returns the “default value” for a type. Read more
source§impl Display for StringTextNode
impl Display for StringTextNode
source§impl From<StringTextNode> for ExpressionKind
impl From<StringTextNode> for ExpressionKind
source§fn from(o: StringTextNode) -> Self
fn from(o: StringTextNode) -> Self
Converts to this type from the input type.
source§impl Hash for StringTextNode
impl Hash for StringTextNode
source§impl PartialEq for StringTextNode
impl PartialEq for StringTextNode
source§fn eq(&self, other: &StringTextNode) -> bool
fn eq(&self, other: &StringTextNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ValkyrieNode for StringTextNode
impl ValkyrieNode for StringTextNode
impl Eq for StringTextNode
impl StructuralPartialEq for StringTextNode
Auto Trait Implementations§
impl RefUnwindSafe for StringTextNode
impl Send for StringTextNode
impl Sync for StringTextNode
impl Unpin for StringTextNode
impl UnwindSafe for StringTextNode
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