Skip to main content

XimWrite

Trait XimWrite 

Source
pub trait XimWrite {
    // Required methods
    fn write(&self, writer: &mut Writer<'_>);
    fn size(&self) -> usize;
}

Required Methods§

Source

fn write(&self, writer: &mut Writer<'_>)

Source

fn size(&self) -> usize

byte size of format

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl XimWrite for bool

Source§

fn write(&self, writer: &mut Writer<'_>)

Source§

fn size(&self) -> usize

Source§

impl XimWrite for i16

Source§

fn write(&self, writer: &mut Writer<'_>)

Source§

fn size(&self) -> usize

Source§

impl XimWrite for i32

Source§

fn write(&self, writer: &mut Writer<'_>)

Source§

fn size(&self) -> usize

Source§

impl XimWrite for u8

Source§

fn write(&self, writer: &mut Writer<'_>)

Source§

fn size(&self) -> usize

Source§

impl XimWrite for u16

Source§

fn write(&self, writer: &mut Writer<'_>)

Source§

fn size(&self) -> usize

Source§

impl XimWrite for u32

Source§

fn write(&self, writer: &mut Writer<'_>)

Source§

fn size(&self) -> usize

Source§

impl<T> XimWrite for &T
where T: XimWrite,

Source§

fn write(&self, writer: &mut Writer<'_>)

Source§

fn size(&self) -> usize

Implementors§