Trait hexe_core::misc::Extract [] [src]

pub trait Extract<T: ?Sized> {
    type Output: ?Sized;
    fn extract<'a>(self, buf: &'a T) -> &'a Self::Output;
fn extract_mut<'a>(self, buf: &'a mut T) -> &'a mut Self::Output; }

A type whose instances may be used to extract references from buffers.

All operations are non-panicking and cannot fail.

Associated Types

The output type.

Required Methods

Extracts a reference to the value for self within buf.

Extracts a mutable reference to the value for self within buf.

Implementors