Trait ParselyWrite

Source
pub trait ParselyWrite: StateSync + Sized {
    type Ctx;

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

Required Associated Types§

Required Methods§

Source

fn write<B: BitBufMut, T: ByteOrder>( &self, buf: &mut B, ctx: Self::Ctx, ) -> ParselyResult<()>

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

Source§

type Ctx = ()

Source§

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

Source§

impl ParselyWrite for u8

Source§

type Ctx = ()

Source§

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

Source§

impl ParselyWrite for u16

Source§

type Ctx = ()

Source§

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

Source§

impl ParselyWrite for u32

Source§

type Ctx = ()

Source§

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

Implementors§

Source§

impl ParselyWrite for u1

Source§

impl ParselyWrite for u2

Source§

impl ParselyWrite for u3

Source§

impl ParselyWrite for u4

Source§

impl ParselyWrite for u5

Source§

impl ParselyWrite for u6

Source§

impl ParselyWrite for u7

Source§

impl ParselyWrite for u9

Source§

impl ParselyWrite for u10

Source§

impl ParselyWrite for u11

Source§

impl ParselyWrite for u12

Source§

impl ParselyWrite for u13

Source§

impl ParselyWrite for u14

Source§

impl ParselyWrite for u15

Source§

impl ParselyWrite for u17

Source§

impl ParselyWrite for u18

Source§

impl ParselyWrite for u19

Source§

impl ParselyWrite for u20

Source§

impl ParselyWrite for u21

Source§

impl ParselyWrite for u22

Source§

impl ParselyWrite for u23

Source§

impl ParselyWrite for u24

Source§

impl ParselyWrite for u25

Source§

impl ParselyWrite for u26

Source§

impl ParselyWrite for u27

Source§

impl ParselyWrite for u28

Source§

impl ParselyWrite for u29

Source§

impl ParselyWrite for u30

Source§

impl ParselyWrite for u31