pub struct StringLiteral {
pub elements: Vec<StringElement>,
/* private fields */
}Expand description
A typed Macaulay2 string_literal syntax node.
Fields§
§elements: Vec<StringElement>The elements child of this syntax node.
Implementations§
Source§impl StringLiteral
impl StringLiteral
Sourcepub fn new(elements: Vec<StringElement>, span: Span) -> Self
pub fn new(elements: Vec<StringElement>, span: Span) -> Self
Creates this node from its typed children.
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 Literal
impl From<StringLiteral> for Literal
Source§fn from(value: StringLiteral) -> Self
fn from(value: StringLiteral) -> Self
Converts to this type from the input type.
Source§impl Lex for StringLiteral
impl Lex for StringLiteral
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
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,
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