[−][src]Struct erl_parse::Parser
Methods
impl<T> Parser<T> where
T: TokenRead,
[src]
T: TokenRead,
pub fn new(reader: T) -> Self
[src]
pub fn parse<P: Parse>(&mut self) -> Result<P>
[src]
pub fn parse_tail<P: ParseTail>(&mut self, head: P::Head) -> Result<P>
[src]
pub fn expect<P: Parse + Expect>(&mut self, expected: &P::Value) -> Result<P>
[src]
pub fn expect_any<P: Parse + Expect>(
&mut self,
expected: &[&P::Value]
) -> Result<P>
[src]
&mut self,
expected: &[&P::Value]
) -> Result<P>
pub fn peek<F, P>(&mut self, f: F) -> Result<P> where
F: FnOnce(&mut Self) -> Result<P>,
[src]
F: FnOnce(&mut Self) -> Result<P>,
pub fn transaction<F, P>(&mut self, f: F) -> Result<P> where
F: FnOnce(&mut Self) -> Result<P>,
[src]
F: FnOnce(&mut Self) -> Result<P>,
pub fn eos(&mut self) -> Result<bool>
[src]
impl<T> Parser<T>
[src]
pub fn reader(&self) -> &T
[src]
pub fn reader_mut(&mut self) -> &mut T
[src]
pub fn into_reader(self) -> T
[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,