Trait bin_utils::Write

source ·
pub trait Write {
    // Required method
    fn to_bytes(&self) -> Vec<u8>;
}
Expand description

A trait for writing data of variable length.

Required Methods§

source

fn to_bytes(&self) -> Vec<u8>

Implementations on Foreign Types§

source§

impl<'a, const N: usize, T: Write> Write for [T; N]

source§

fn to_bytes(&self) -> Vec<u8>

source§

impl<'a, T> Write for Vec<T>where T: Write,

source§

fn to_bytes(&self) -> Vec<u8>

Implementors§