pub struct TokenChunk {
pub token_type: TokenType,
pub offset: usize,
pub pair_token: usize,
pub len: usize,
pub next: char,
}
Fields§
§token_type: TokenType
§offset: usize
§pair_token: usize
§len: usize
§next: char
Implementations§
Source§impl TokenChunk
impl TokenChunk
pub fn scan_last_token(token_chunks: &Vec<TokenChunk>) -> TokenType
pub fn push_with_pairing( token_chunks: &mut Vec<TokenChunk>, pair_stack: &mut Vec<usize>, next: char, offset: usize, offset2: usize, token_type: TokenType, )
Trait Implementations§
Source§impl Clone for TokenChunk
impl Clone for TokenChunk
Source§fn clone(&self) -> TokenChunk
fn clone(&self) -> TokenChunk
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 TokenChunk
impl RefUnwindSafe for TokenChunk
impl Send for TokenChunk
impl Sync for TokenChunk
impl Unpin for TokenChunk
impl UnwindSafe for TokenChunk
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