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