pub struct TokenInfo { /* private fields */ }
Implementations§
source§impl TokenInfo
impl TokenInfo
pub fn get_start(&self, length_of_whole_input: usize) -> usize
pub fn get_end(&self, length_of_whole_input: usize) -> usize
pub fn start_to_end_of_input(&self) -> usize
pub fn end_to_end_of_input(&self) -> usize
pub fn get_length(&self) -> usize
pub fn bound(&self, start: usize, end: usize) -> TokenInfo
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TokenInfo
impl Send for TokenInfo
impl Sync for TokenInfo
impl Unpin for TokenInfo
impl UnwindSafe for TokenInfo
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