#[repr(C)]pub struct TSLexer {
pub lookahead: c_int,
pub result_symbol: u16,
pub advance: Option<unsafe extern "C" fn(*mut TSLexer, bool)>,
pub mark_end: Option<unsafe extern "C" fn(*mut TSLexer)>,
pub get_column: Option<unsafe extern "C" fn(*mut TSLexer) -> u32>,
pub is_at_included_range_start: Option<unsafe extern "C" fn(*const TSLexer) -> bool>,
pub eof: Option<unsafe extern "C" fn(*const TSLexer) -> bool>,
}
Fields§
§lookahead: c_int
§result_symbol: u16
§advance: Option<unsafe extern "C" fn(*mut TSLexer, bool)>
§mark_end: Option<unsafe extern "C" fn(*mut TSLexer)>
§get_column: Option<unsafe extern "C" fn(*mut TSLexer) -> u32>
§is_at_included_range_start: Option<unsafe extern "C" fn(*const TSLexer) -> bool>
§eof: Option<unsafe extern "C" fn(*const TSLexer) -> bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TSLexer
impl RefUnwindSafe for TSLexer
impl Send for TSLexer
impl Sync for TSLexer
impl Unpin for TSLexer
impl UnwindSafe for TSLexer
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