Struct wain_syntax_text::parser::Parser
source · pub struct Parser<'s> { /* private fields */ }
Implementations§
source§impl<'s> Parser<'s>
impl<'s> Parser<'s>
pub fn new(source: &'s str) -> Self
pub fn with_lexer(lexer: LookAhead<Lexer<'s>>) -> Self
pub fn source(&self) -> &'s str
pub fn into_lexer(self) -> LookAhead<Lexer<'s>> ⓘ
pub fn is_done(&self) -> bool
pub fn parse_wat(self) -> Result<Parsed<'s>, Box<ParseError<'s>>>
pub fn parse<P: Parse<'s>>(&mut self) -> Result<P, Box<ParseError<'s>>>
pub fn current_pos(&self) -> Result<Option<usize>, Box<ParseError<'s>>>
Auto Trait Implementations§
impl<'s> RefUnwindSafe for Parser<'s>
impl<'s> Send for Parser<'s>
impl<'s> Sync for Parser<'s>
impl<'s> Unpin for Parser<'s>
impl<'s> UnwindSafe for Parser<'s>
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