Trait StreamWriter

Source
pub trait StreamWriter: Sized {
    // Required method
    fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>;
}

Required Methods§

Source

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Writes something to the specified buffer using the specified byte order.

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 StreamWriter for f32

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for f64

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for i8

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for i16

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for i32

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for i64

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for i128

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for u8

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for u16

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for u32

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for u64

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl StreamWriter for u128

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl<T> StreamWriter for VecDeque<T>
where T: StreamWriter,

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Source§

impl<T> StreamWriter for Vec<T>
where T: StreamWriter,

Source§

fn write_to<W: Write>(&self, buffer: &mut W, order: ByteOrder) -> Result<()>

Implementors§