ByteParser

Trait ByteParser 

Source
pub trait ByteParser: Parser<[u8]> {
    // Provided methods
    fn parse_reader<R, E>(self, r: R) -> Result<Self::Output, E>
       where R: Read,
             E: From<Self::Error> + From<Error> { ... }
    fn parse_reader_with_initial_buffer_size<R, E>(
        self,
        r: R,
        bufsize: usize,
    ) -> Result<Self::Output, E>
       where R: Read,
             E: From<Self::Error> + From<Error> { ... }
}
Expand description

Any Parser over [u8] input

Provided Methods§

Source

fn parse_reader<R, E>(self, r: R) -> Result<Self::Output, E>
where R: Read, E: From<Self::Error> + From<Error>,

Consume and parse all of input from r

Source

fn parse_reader_with_initial_buffer_size<R, E>( self, r: R, bufsize: usize, ) -> Result<Self::Output, E>
where R: Read, E: From<Self::Error> + From<Error>,

Consume and parse all of input from r using an initial buffer size

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S> ByteParser for S
where S: Parser<[u8]>,

Every Parser<[u8]> is a ByteParser