pub struct Parser<'a> {
data: &'a str,
pos: usize,
state: State,
}
Fields§
§data: &'a str
§pos: usize
§state: State
Implementations§
source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn new(mapping: &'a str) -> Self
pub fn next_token(&mut self) -> Option<Result<Token<'_>, Error>>
fn parse_uuid(&mut self) -> Result<Token<'_>, Error>
fn parse_name(&mut self) -> Result<Token<'_>, Error>
fn parse_key_val(&mut self) -> Result<Token<'_>, Error>
fn next_comma_or_end(&self) -> usize
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
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