pub struct SymbolDef {
pub name: Token,
pub stype: SymbolType,
pub start: StatementIndex,
pub ordinal: TokenIndex,
}Expand description
Extracted information for a math symbol defined in a segment.
Fields§
§name: TokenThe character sequence representing the symbol.
stype: SymbolTypeThe type of the statement which introduces the symbol.
start: StatementIndexThe location of the statement which introduces the symbol.
ordinal: TokenIndexIndex of the symbol within its introducing statement.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SymbolDef
impl RefUnwindSafe for SymbolDef
impl Send for SymbolDef
impl Sync for SymbolDef
impl Unpin for SymbolDef
impl UnwindSafe for SymbolDef
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more