wiwi::parser::stateful

Trait ParserStateful

Source
pub trait ParserStateful<I, O, E = ()>
where I: Input,
{ // Required method fn parse(&mut self, input: I) -> Result<I, O, E>; // Provided method fn map<F, O2>(self, f: F) -> Map<Self, F, O> where Self: Sized, F: FnMut(O) -> O2 { ... } }

Required Methods§

Source

fn parse(&mut self, input: I) -> Result<I, O, E>

Provided Methods§

Source

fn map<F, O2>(self, f: F) -> Map<Self, F, O>
where Self: Sized, F: FnMut(O) -> O2,

Implementors§

Source§

impl<'h> ParserStateful<&'h [u8], f32> for NumF32BE

Source§

impl<'h> ParserStateful<&'h [u8], f32> for NumF32LE

Source§

impl<'h> ParserStateful<&'h [u8], f32> for NumF32NE

Source§

impl<'h> ParserStateful<&'h [u8], f64> for NumF64BE

Source§

impl<'h> ParserStateful<&'h [u8], f64> for NumF64LE

Source§

impl<'h> ParserStateful<&'h [u8], f64> for NumF64NE

Source§

impl<'h> ParserStateful<&'h [u8], i8> for NumI8BE

Source§

impl<'h> ParserStateful<&'h [u8], i8> for NumI8LE

Source§

impl<'h> ParserStateful<&'h [u8], i8> for NumI8NE

Source§

impl<'h> ParserStateful<&'h [u8], i16> for NumI16BE

Source§

impl<'h> ParserStateful<&'h [u8], i16> for NumI16LE

Source§

impl<'h> ParserStateful<&'h [u8], i16> for NumI16NE

Source§

impl<'h> ParserStateful<&'h [u8], i32> for NumI32BE

Source§

impl<'h> ParserStateful<&'h [u8], i32> for NumI32LE

Source§

impl<'h> ParserStateful<&'h [u8], i32> for NumI32NE

Source§

impl<'h> ParserStateful<&'h [u8], i64> for NumI64BE

Source§

impl<'h> ParserStateful<&'h [u8], i64> for NumI64LE

Source§

impl<'h> ParserStateful<&'h [u8], i64> for NumI64NE

Source§

impl<'h> ParserStateful<&'h [u8], i128> for NumI128BE

Source§

impl<'h> ParserStateful<&'h [u8], i128> for NumI128LE

Source§

impl<'h> ParserStateful<&'h [u8], i128> for NumI128NE

Source§

impl<'h> ParserStateful<&'h [u8], isize> for NumIsizeBE

Source§

impl<'h> ParserStateful<&'h [u8], isize> for NumIsizeLE

Source§

impl<'h> ParserStateful<&'h [u8], isize> for NumIsizeNE

Source§

impl<'h> ParserStateful<&'h [u8], u8> for NumU8BE

Source§

impl<'h> ParserStateful<&'h [u8], u8> for NumU8LE

Source§

impl<'h> ParserStateful<&'h [u8], u8> for NumU8NE

Source§

impl<'h> ParserStateful<&'h [u8], u16> for NumU16BE

Source§

impl<'h> ParserStateful<&'h [u8], u16> for NumU16LE

Source§

impl<'h> ParserStateful<&'h [u8], u16> for NumU16NE

Source§

impl<'h> ParserStateful<&'h [u8], u32> for NumU32BE

Source§

impl<'h> ParserStateful<&'h [u8], u32> for NumU32LE

Source§

impl<'h> ParserStateful<&'h [u8], u32> for NumU32NE

Source§

impl<'h> ParserStateful<&'h [u8], u64> for NumU64BE

Source§

impl<'h> ParserStateful<&'h [u8], u64> for NumU64LE

Source§

impl<'h> ParserStateful<&'h [u8], u64> for NumU64NE

Source§

impl<'h> ParserStateful<&'h [u8], u128> for NumU128BE

Source§

impl<'h> ParserStateful<&'h [u8], u128> for NumU128LE

Source§

impl<'h> ParserStateful<&'h [u8], u128> for NumU128NE

Source§

impl<'h> ParserStateful<&'h [u8], usize> for NumUsizeBE

Source§

impl<'h> ParserStateful<&'h [u8], usize> for NumUsizeLE

Source§

impl<'h> ParserStateful<&'h [u8], usize> for NumUsizeNE

Source§

impl<F, I, O, E> ParserStateful<I, O, E> for F
where I: Input, F: FnMut(I) -> Result<I, O, E>,

Source§

impl<I> ParserStateful<I, I> for Take
where I: Input,

Source§

impl<I, T> ParserStateful<I, ()> for Tag<T>
where I: Input, T: Needle<I>,

Source§

impl<I, const N: usize> ParserStateful<I, <I as Input>::ConstSize<N>> for TakeConst<N>
where I: Input,

Source§

impl<I, const N: usize> ParserStateful<I, <I as Input>::ConstSizeOwned<N>> for TakeArray<N>
where I: Input,

Source§

impl<P, I, O, E> ParserStateful<I, (), E> for Void<P, I, O, E>
where I: Input, P: ParserStateful<I, O, E>,

Source§

impl<P, I, O, E> ParserStateful<I, O, E> for AdaptStateful<P, I, O, E>
where I: Input, P: Parser<I, O, E>,

Source§

impl<P, I, O, E, EReal, PBefore, OBefore, EBefore, PAfter, OAfter, EAfter> ParserStateful<I, O, EReal> for Delimited<P, I, O, E, EReal, PBefore, OBefore, EBefore, PAfter, OAfter, EAfter>
where I: Input, PBefore: ParserStateful<I, OBefore, EBefore>, P: ParserStateful<I, O, E>, PAfter: ParserStateful<I, OAfter, EAfter>, EBefore: Into<EReal>, E: Into<EReal>, EAfter: Into<EReal>,

Source§

impl<P, I, O, E, F, O2> ParserStateful<I, O2, E> for Map<P, F, O>
where I: Input, P: ParserStateful<I, O, E>, F: FnMut(O) -> O2,