Skip to main content

ParselyWrite

Trait ParselyWrite 

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

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

Required Associated Types§

Required Methods§

Source

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

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> ParselyWrite<B> for bool
where B: BitBufMut,

Source§

type Ctx = ()

Source§

fn write<T>( &self, buf: &mut B, _: <bool as ParselyWrite<B>>::Ctx, ) -> Result<(), Error>
where T: ByteOrder,

Source§

impl<B> ParselyWrite<B> for u8
where B: BitBufMut,

Source§

type Ctx = ()

Source§

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

Source§

impl<B> ParselyWrite<B> for u16
where B: BitBufMut,

Source§

type Ctx = ()

Source§

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

Source§

impl<B> ParselyWrite<B> for u32
where B: BitBufMut,

Source§

type Ctx = ()

Source§

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

Implementors§

Source§

impl<B> ParselyWrite<B> for u1
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u2
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u3
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u4
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u5
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u6
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u7
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u9
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u10
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u11
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u12
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u13
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u14
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u15
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u17
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u18
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u19
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u20
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u21
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u22
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u23
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u24
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u25
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u26
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u27
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u28
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u29
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u30
where B: BitBufMut,

Source§

impl<B> ParselyWrite<B> for u31
where B: BitBufMut,