pub trait WriteExt {
Show 14 methods // Required methods fn write_u128(&mut self, v: u128) -> Result<(), Error>; fn write_u64(&mut self, v: u64) -> Result<(), Error>; fn write_u32(&mut self, v: u32) -> Result<(), Error>; fn write_u16(&mut self, v: u16) -> Result<(), Error>; fn write_u8(&mut self, v: u8) -> Result<(), Error>; fn write_i128(&mut self, v: i128) -> Result<(), Error>; fn write_i64(&mut self, v: i64) -> Result<(), Error>; fn write_i32(&mut self, v: i32) -> Result<(), Error>; fn write_i16(&mut self, v: i16) -> Result<(), Error>; fn write_i8(&mut self, v: i8) -> Result<(), Error>; fn write_f64(&mut self, v: f64) -> Result<(), Error>; fn write_f32(&mut self, v: f32) -> Result<(), Error>; fn write_bool(&mut self, v: bool) -> Result<(), Error>; fn write_slice(&mut self, v: &[u8]) -> Result<(), Error>;
}
Expand description

Extensions of Write to encode data as per Bitcoin consensus.

Required Methods§

source

fn write_u128(&mut self, v: u128) -> Result<(), Error>

Output a 128-bit unsigned int

source

fn write_u64(&mut self, v: u64) -> Result<(), Error>

Output a 64-bit unsigned int

source

fn write_u32(&mut self, v: u32) -> Result<(), Error>

Output a 32-bit unsigned int

source

fn write_u16(&mut self, v: u16) -> Result<(), Error>

Output a 16-bit unsigned int

source

fn write_u8(&mut self, v: u8) -> Result<(), Error>

Output an 8-bit unsigned int

source

fn write_i128(&mut self, v: i128) -> Result<(), Error>

Output a 128-bit signed int

source

fn write_i64(&mut self, v: i64) -> Result<(), Error>

Output a 64-bit signed int

source

fn write_i32(&mut self, v: i32) -> Result<(), Error>

Ouptut a 32-bit signed int

source

fn write_i16(&mut self, v: i16) -> Result<(), Error>

Output a 16-bit signed int

source

fn write_i8(&mut self, v: i8) -> Result<(), Error>

Output an 8-bit signed int

source

fn write_f64(&mut self, v: f64) -> Result<(), Error>

Output a 64-bit floating point int

source

fn write_f32(&mut self, v: f32) -> Result<(), Error>

Output a 32-bit floating point int

source

fn write_bool(&mut self, v: bool) -> Result<(), Error>

Output a boolean

source

fn write_slice(&mut self, v: &[u8]) -> Result<(), Error>

Output a byte slice

Implementors§

source§

impl<W: Write> WriteExt for W