Trait ParselyRead

Source
pub trait ParselyRead<B>: Sized {
    type Ctx;

    // Required method
    fn read<T>(buf: &mut B, ctx: Self::Ctx) -> Result<Self, Error>
       where T: ByteOrder;
}

Required Associated Types§

Required Methods§

Source

fn read<T>(buf: &mut B, ctx: Self::Ctx) -> Result<Self, Error>
where T: ByteOrder,

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.

Implementations on Foreign Types§

Source§

impl<B> ParselyRead<B> for bool
where B: BitBuf,

Source§

type Ctx = ()

Source§

fn read<T>( buf: &mut B, _ctx: <bool as ParselyRead<B>>::Ctx, ) -> Result<bool, Error>
where T: ByteOrder,

Source§

impl<B> ParselyRead<B> for u8
where B: BitBuf,

Source§

type Ctx = ()

Source§

fn read<T>(buf: &mut B, _: <u8 as ParselyRead<B>>::Ctx) -> Result<u8, Error>
where T: ByteOrder,

Source§

impl<B> ParselyRead<B> for u16
where B: BitBuf,

Source§

type Ctx = ()

Source§

fn read<T>(buf: &mut B, _: <u16 as ParselyRead<B>>::Ctx) -> Result<u16, Error>
where T: ByteOrder,

Source§

impl<B> ParselyRead<B> for u32
where B: BitBuf,

Source§

type Ctx = ()

Source§

fn read<T>(buf: &mut B, _: <u32 as ParselyRead<B>>::Ctx) -> Result<u32, Error>
where T: ByteOrder,

Implementors§

Source§

impl<B> ParselyRead<B> for u1
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u2
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u3
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u4
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u5
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u6
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u7
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u9
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u10
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u11
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u12
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u13
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u14
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u15
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u17
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u18
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u19
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u20
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u21
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u22
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u23
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u24
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u25
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u26
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u27
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u28
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u29
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u30
where B: BitBuf,

Source§

impl<B> ParselyRead<B> for u31
where B: BitBuf,