pub struct StringLiteral {
pub prefix: Option<Identifier>,
pub quote_count: u8,
pub segments: Vec<StringSegment>,
pub span: Span,
}Expand description
A string literal node.
Fields§
§prefix: Option<Identifier>DSL prefix (e.g., s, f, r, sql).
quote_count: u8Number of quotes (1, 2, 3, 4, …).
segments: Vec<StringSegment>String segments.
span: SpanThe source code span.
Trait Implementations§
Source§impl Clone for StringLiteral
impl Clone for StringLiteral
Source§fn clone(&self) -> StringLiteral
fn clone(&self) -> StringLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StringLiteral
impl Debug for StringLiteral
Source§impl<'de> Deserialize<'de> for StringLiteral
impl<'de> Deserialize<'de> for StringLiteral
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StringLiteral
Source§impl Hash for StringLiteral
impl Hash for StringLiteral
Source§impl PartialEq for StringLiteral
impl PartialEq for StringLiteral
Source§fn eq(&self, other: &StringLiteral) -> bool
fn eq(&self, other: &StringLiteral) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StringLiteral
impl Serialize for StringLiteral
impl StructuralPartialEq for StringLiteral
Auto Trait Implementations§
impl Freeze for StringLiteral
impl RefUnwindSafe for StringLiteral
impl Send for StringLiteral
impl Sync for StringLiteral
impl Unpin for StringLiteral
impl UnsafeUnpin for StringLiteral
impl UnwindSafe for StringLiteral
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