Trait ParselyRead

Source
pub trait ParselyRead: Sized {
    type Ctx;

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

Required Associated Types§

Required Methods§

Source

fn read<B: BitBuf, T: ByteOrder>( buf: &mut B, ctx: Self::Ctx, ) -> ParselyResult<Self>

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 ParselyRead for bool

Source§

type Ctx = ()

Source§

fn read<B: BitBuf, T: ByteOrder>( buf: &mut B, _ctx: Self::Ctx, ) -> ParselyResult<Self>

Source§

impl ParselyRead for u8

Source§

type Ctx = ()

Source§

fn read<B: BitBuf, T: ByteOrder>( buf: &mut B, _: Self::Ctx, ) -> ParselyResult<Self>

Source§

impl ParselyRead for u16

Source§

type Ctx = ()

Source§

fn read<B: BitBuf, T: ByteOrder>( buf: &mut B, _: Self::Ctx, ) -> ParselyResult<Self>

Source§

impl ParselyRead for u32

Source§

type Ctx = ()

Source§

fn read<B: BitBuf, T: ByteOrder>( buf: &mut B, _: Self::Ctx, ) -> ParselyResult<Self>

Implementors§

Source§

impl ParselyRead for u1

Source§

impl ParselyRead for u2

Source§

impl ParselyRead for u3

Source§

impl ParselyRead for u4

Source§

impl ParselyRead for u5

Source§

impl ParselyRead for u6

Source§

impl ParselyRead for u7

Source§

impl ParselyRead for u9

Source§

impl ParselyRead for u10

Source§

impl ParselyRead for u11

Source§

impl ParselyRead for u12

Source§

impl ParselyRead for u13

Source§

impl ParselyRead for u14

Source§

impl ParselyRead for u15

Source§

impl ParselyRead for u17

Source§

impl ParselyRead for u18

Source§

impl ParselyRead for u19

Source§

impl ParselyRead for u20

Source§

impl ParselyRead for u21

Source§

impl ParselyRead for u22

Source§

impl ParselyRead for u23

Source§

impl ParselyRead for u24

Source§

impl ParselyRead for u25

Source§

impl ParselyRead for u26

Source§

impl ParselyRead for u27

Source§

impl ParselyRead for u28

Source§

impl ParselyRead for u29

Source§

impl ParselyRead for u30

Source§

impl ParselyRead for u31