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§
Sourcefn parse_reader<R, E>(self, r: R) -> Result<Self::Output, E>
fn parse_reader<R, E>(self, r: R) -> Result<Self::Output, E>
Consume and parse all of input from r
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§
impl<S> ByteParser for S
Every Parser<[u8]> is a ByteParser