#[repr(C)]pub struct rbs_lexer_t {
pub string: rbs_string_t,
pub start_pos: c_int,
pub end_pos: c_int,
pub current: rbs_position_t,
pub start: rbs_position_t,
pub current_code_point: c_uint,
pub current_character_bytes: usize,
pub first_token_of_line: bool,
pub encoding: *const rbs_encoding_t,
}Expand description
The lexer state is the curren token.
#. 0.1.2.3.4.5.6.7.8.9.0.1.2.3.4.5.6
... " a s t r i n g t o k e n "
^ start position (0)
^ current position (6)
^ current character ('i', bytes = 1)
~~~~~~~~~~~ Token => "a strFields§
§string: rbs_string_t§start_pos: c_int§end_pos: c_int§current: rbs_position_t§start: rbs_position_t§current_code_point: c_uint§current_character_bytes: usize§first_token_of_line: bool§encoding: *const rbs_encoding_tTrait Implementations§
Source§impl Clone for rbs_lexer_t
impl Clone for rbs_lexer_t
Source§fn clone(&self) -> rbs_lexer_t
fn clone(&self) -> rbs_lexer_t
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 rbs_lexer_t
impl Debug for rbs_lexer_t
impl Copy for rbs_lexer_t
Auto Trait Implementations§
impl Freeze for rbs_lexer_t
impl RefUnwindSafe for rbs_lexer_t
impl !Send for rbs_lexer_t
impl !Sync for rbs_lexer_t
impl Unpin for rbs_lexer_t
impl UnsafeUnpin for rbs_lexer_t
impl UnwindSafe for rbs_lexer_t
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