pub struct Symbol {
pub package_qualifier: Option<Span>,
pub index_qualifier: Option<Span>,
/* private fields */
}Expand description
A typed Macaulay2 symbol syntax leaf.
Fields§
§package_qualifier: Option<Span>The package-name portion before the first $, when this is a package-qualified symbol.
index_qualifier: Option<Span>The decimal index after the final $, when this is an indexed symbol.
Implementations§
Trait Implementations§
Source§impl From<Symbol> for AssignmentPackComponent
impl From<Symbol> for AssignmentPackComponent
Source§impl Lex for Symbol
impl Lex for Symbol
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 Symbol
impl PrettyTree for Symbol
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 Symbolwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for Symbolwhere
N: ExternalCstNode,
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin for Symbol
impl UnwindSafe for Symbol
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