Skip to main content

ParselyRead

Trait ParselyRead 

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

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

Required Associated Types§

Required Methods§

Source

fn read<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".

Implementations on Foreign Types§

Source§

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

Source§

type Ctx = ()

Source§

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

Source§

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

Source§

type Ctx = ()

Source§

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

Source§

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

Source§

type Ctx = ()

Source§

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

Source§

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

Source§

type Ctx = ()

Source§

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

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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