SliceParse

Trait SliceParse 

Source
pub trait SliceParse {
    type Success<'data>;
    type Error;
    type Arg;

    // Required method
    fn parse<'data>(
        arg: Self::Arg,
        data: &'data [u8],
    ) -> ParseResult<Self::Success<'data>, Self::Error>
       where Self: Sized;
}

Required Associated Types§

Source

type Success<'data>

Source

type Error

Source

type Arg

Required Methods§

Source

fn parse<'data>( arg: Self::Arg, data: &'data [u8], ) -> ParseResult<Self::Success<'data>, Self::Error>
where Self: Sized,

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§