pub struct StringLiteral {
pub elements: Vec<StringElement>,
}Fields§
§elements: Vec<StringElement>Implementations§
Source§impl StringLiteral
impl StringLiteral
pub fn new(elements: Vec<StringElement>) -> Self
Trait Implementations§
Source§impl Debug for StringLiteral
impl Debug for StringLiteral
Source§impl From<StringLiteral> for Component
impl From<StringLiteral> for Component
Source§fn from(value: StringLiteral) -> Self
fn from(value: StringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<StringLiteral> for Expr
impl From<StringLiteral> for Expr
Source§fn from(value: StringLiteral) -> Self
fn from(value: StringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<StringLiteral> for SequenceElement
impl From<StringLiteral> for SequenceElement
Source§fn from(value: StringLiteral) -> Self
fn from(value: StringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<StringLiteral> for SyntaxNode
impl From<StringLiteral> for SyntaxNode
Source§fn from(value: StringLiteral) -> Self
fn from(value: StringLiteral) -> Self
Converts to this type from the input type.
Source§impl PrettyTree for StringLiteral
impl PrettyTree for StringLiteral
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for StringLiteralwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for StringLiteralwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for StringLiteral
impl ToCells for StringLiteral
Source§fn to_cells(&self, output: &mut CellStream)
fn to_cells(&self, output: &mut CellStream)
Appends this value’s global cells to
output.Source§fn to_cell_stream(&self, source_id: SourceId) -> CellStream
fn to_cell_stream(&self, source_id: SourceId) -> CellStream
Emits this value into a fresh cell stream with the requested identity.
Source§impl ToTokens for StringLiteral
impl ToTokens 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