pub struct StackMaximaToken {
pub startline: usize,
pub startcolumn: usize,
pub length: i16,
pub endline: usize,
pub endcolumn: usize,
pub startbyte: usize,
pub endbyte: usize,
pub value: StackMaximaParserTokenType,
}Expand description
Tokens.
Fields§
§startline: usizeLine at which this token starts. First line being 1.
startcolumn: usizeColumn at which this token starts. First column being 1.
length: i16Length of this token in characters, a negative value could represent virtual tokens.
endline: usizeThe token ends on this line. Inclusive, the last char is in this position
endcolumn: usizeInclusive, the last char is in this position
startbyte: usizeThe byte of the input string at which this token starts.
endbyte: usizeThe byte of the input string, before which this token ends.
This token has been built from whatever was in source[startbyte..endbyte], some unicode
char replacement may have happened though.
value: StackMaximaParserTokenTypeThe type and content of the token.
Implementations§
Source§impl StackMaximaToken
impl StackMaximaToken
pub fn merge(&self, other: StackMaximaToken) -> StackMaximaToken
pub fn split(&self) -> (StackMaximaToken, StackMaximaToken)
Trait Implementations§
Source§impl Clone for StackMaximaToken
impl Clone for StackMaximaToken
Source§fn clone(&self) -> StackMaximaToken
fn clone(&self) -> StackMaximaToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StackMaximaToken
impl Debug for StackMaximaToken
Source§impl PartialEq for StackMaximaToken
impl PartialEq for StackMaximaToken
impl StructuralPartialEq for StackMaximaToken
Auto Trait Implementations§
impl Freeze for StackMaximaToken
impl RefUnwindSafe for StackMaximaToken
impl Send for StackMaximaToken
impl Sync for StackMaximaToken
impl Unpin for StackMaximaToken
impl UnwindSafe for StackMaximaToken
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