pub struct LitSym {
pub name: String,
pub span: Range<usize>,
}Expand description
A symbol / identifier literal. Symbols are used to represent variables and functions.
Fields§
§name: StringThe name of the symbol.
span: Range<usize>The region of the source code that this literal was parsed from.
Trait Implementations§
Source§impl From<LitSym> for AssignTarget
impl From<LitSym> for AssignTarget
Source§impl Latex for LitSym
impl Latex for LitSym
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for LitSym
impl<'source> Parse<'source> for LitSym
impl Eq for LitSym
impl StructuralPartialEq for LitSym
Auto Trait Implementations§
impl Freeze for LitSym
impl RefUnwindSafe for LitSym
impl Send for LitSym
impl Sync for LitSym
impl Unpin for LitSym
impl UnwindSafe for LitSym
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