Skip to main content

BinaryOutput

Trait BinaryOutput 

Source
pub trait BinaryOutput {
Show 17 methods // Required methods fn write_u8(&mut self, value: u8); fn write_bytes(&mut self, bytes: &[u8]); // Provided methods fn supports_efficient_bulk_bytes(&self) -> bool { ... } fn write_i8(&mut self, value: i8) { ... } fn write_u16(&mut self, value: u16) { ... } fn write_i16(&mut self, value: i16) { ... } fn write_u32(&mut self, value: u32) { ... } fn write_i32(&mut self, value: i32) { ... } fn write_u64(&mut self, value: u64) { ... } fn write_i64(&mut self, value: i64) { ... } fn write_u128(&mut self, value: u128) { ... } fn write_i128(&mut self, value: i128) { ... } fn write_f32(&mut self, value: f32) { ... } fn write_f64(&mut self, value: f64) { ... } fn write_var_u32(&mut self, value: u32) { ... } fn write_var_i32(&mut self, value: i32) { ... } fn write_compressed( &mut self, bytes: &[u8], opts: Compression, ) -> Result<(), Error> { ... }
}

Required Methods§

Source

fn write_u8(&mut self, value: u8)

Source

fn write_bytes(&mut self, bytes: &[u8])

Provided Methods§

Source

fn supports_efficient_bulk_bytes(&self) -> bool

Source

fn write_i8(&mut self, value: i8)

Source

fn write_u16(&mut self, value: u16)

Source

fn write_i16(&mut self, value: i16)

Source

fn write_u32(&mut self, value: u32)

Source

fn write_i32(&mut self, value: i32)

Source

fn write_u64(&mut self, value: u64)

Source

fn write_i64(&mut self, value: i64)

Source

fn write_u128(&mut self, value: u128)

Source

fn write_i128(&mut self, value: i128)

Source

fn write_f32(&mut self, value: f32)

Source

fn write_f64(&mut self, value: f64)

Source

fn write_var_u32(&mut self, value: u32)

Source

fn write_var_i32(&mut self, value: i32)

Source

fn write_compressed( &mut self, bytes: &[u8], opts: Compression, ) -> Result<(), Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl BinaryOutput for BytesMut

Source§

fn write_u8(&mut self, value: u8)

Source§

fn write_bytes(&mut self, bytes: &[u8])

Source§

fn supports_efficient_bulk_bytes(&self) -> bool

Source§

impl BinaryOutput for Vec<u8>

Source§

fn write_u8(&mut self, value: u8)

Source§

fn write_bytes(&mut self, bytes: &[u8])

Source§

fn supports_efficient_bulk_bytes(&self) -> bool

Source§

impl<Output> BinaryOutput for &mut Output
where Output: BinaryOutput + ?Sized,

Source§

fn write_u8(&mut self, value: u8)

Source§

fn write_bytes(&mut self, bytes: &[u8])

Source§

fn supports_efficient_bulk_bytes(&self) -> bool

Implementors§