pub trait Parser<I, O, E = ()>where
I: Input,{
// Required method
fn parse(&self, input: I) -> Result<I, O, E>;
// Provided method
fn map<F, O2>(self, f: F) -> Map<Self, F, O>
where Self: Sized,
F: Fn(O) -> O2 { ... }
}
Required Methods§
Provided Methods§
Implementors§
impl<'h> Parser<&'h [u8], f32> for NumF32BE
impl<'h> Parser<&'h [u8], f32> for NumF32LE
impl<'h> Parser<&'h [u8], f32> for NumF32NE
impl<'h> Parser<&'h [u8], f64> for NumF64BE
impl<'h> Parser<&'h [u8], f64> for NumF64LE
impl<'h> Parser<&'h [u8], f64> for NumF64NE
impl<'h> Parser<&'h [u8], i8> for NumI8BE
impl<'h> Parser<&'h [u8], i8> for NumI8LE
impl<'h> Parser<&'h [u8], i8> for NumI8NE
impl<'h> Parser<&'h [u8], i16> for NumI16BE
impl<'h> Parser<&'h [u8], i16> for NumI16LE
impl<'h> Parser<&'h [u8], i16> for NumI16NE
impl<'h> Parser<&'h [u8], i32> for NumI32BE
impl<'h> Parser<&'h [u8], i32> for NumI32LE
impl<'h> Parser<&'h [u8], i32> for NumI32NE
impl<'h> Parser<&'h [u8], i64> for NumI64BE
impl<'h> Parser<&'h [u8], i64> for NumI64LE
impl<'h> Parser<&'h [u8], i64> for NumI64NE
impl<'h> Parser<&'h [u8], i128> for NumI128BE
impl<'h> Parser<&'h [u8], i128> for NumI128LE
impl<'h> Parser<&'h [u8], i128> for NumI128NE
impl<'h> Parser<&'h [u8], isize> for NumIsizeBE
Available on 64-bit only.
impl<'h> Parser<&'h [u8], isize> for NumIsizeLE
Available on 64-bit only.
impl<'h> Parser<&'h [u8], isize> for NumIsizeNE
Available on 64-bit only.
impl<'h> Parser<&'h [u8], u8> for NumU8BE
impl<'h> Parser<&'h [u8], u8> for NumU8LE
impl<'h> Parser<&'h [u8], u8> for NumU8NE
impl<'h> Parser<&'h [u8], u16> for NumU16BE
impl<'h> Parser<&'h [u8], u16> for NumU16LE
impl<'h> Parser<&'h [u8], u16> for NumU16NE
impl<'h> Parser<&'h [u8], u32> for NumU32BE
impl<'h> Parser<&'h [u8], u32> for NumU32LE
impl<'h> Parser<&'h [u8], u32> for NumU32NE
impl<'h> Parser<&'h [u8], u64> for NumU64BE
impl<'h> Parser<&'h [u8], u64> for NumU64LE
impl<'h> Parser<&'h [u8], u64> for NumU64NE
impl<'h> Parser<&'h [u8], u128> for NumU128BE
impl<'h> Parser<&'h [u8], u128> for NumU128LE
impl<'h> Parser<&'h [u8], u128> for NumU128NE
impl<'h> Parser<&'h [u8], usize> for NumUsizeBE
Available on 64-bit only.
impl<'h> Parser<&'h [u8], usize> for NumUsizeLE
Available on 64-bit only.
impl<'h> Parser<&'h [u8], usize> for NumUsizeNE
Available on 64-bit only.