pub struct LexerToken {
pub typ: LexerTokenType,
pub lexeme: String,
pub line: usize,
pub col: usize,
pub file: String,
pub precedence: Precedence,
}
Fields§
§typ: LexerTokenType
§lexeme: String
§line: usize
§col: usize
§file: String
§precedence: Precedence
Implementations§
Source§impl LexerToken
impl LexerToken
pub fn new( typ: LexerTokenType, lexeme: String, line: usize, col: usize, file: String, precedence: Precedence, ) -> Self
Trait Implementations§
Source§impl Clone for LexerToken
impl Clone for LexerToken
Source§fn clone(&self) -> LexerToken
fn clone(&self) -> LexerToken
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 moreAuto Trait Implementations§
impl Freeze for LexerToken
impl RefUnwindSafe for LexerToken
impl Send for LexerToken
impl Sync for LexerToken
impl Unpin for LexerToken
impl UnwindSafe for LexerToken
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