pub trait Extract<'a, P> {
fn extract(stream: &mut Stream<'a>, _: P) -> ExtractResult<'a, Self>
where
Self: Sized;
}
Expand description
A type that can be extracted from a stream of bytes.
Required Methods
sourcefn extract(stream: &mut Stream<'a>, _: P) -> ExtractResult<'a, Self>where
Self: Sized,
fn extract(stream: &mut Stream<'a>, _: P) -> ExtractResult<'a, Self>where
Self: Sized,
Extracts a value of this type from the supplied stream of bytes.
See Stream::extract
for usage information.