BufMutExt

Trait BufMutExt 

Source
pub trait BufMutExt {
    // Required methods
    fn write<T: Codec>(&mut self, x: T);
    fn write_var(&mut self, x: u64);
}
Expand description

Extension trait for writing to buffers

Required Methods§

Source

fn write<T: Codec>(&mut self, x: T)

Write and encode a value to the buffer

Source

fn write_var(&mut self, x: u64)

Write a variable-length integer to the buffer

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.

Implementors§

Source§

impl<T: BufMut> BufMutExt for T