Trait bin_utils::Write

source ·
pub trait Write<'a> {
    // Required method
    fn to_bytes(&self) -> Cow<'a, [u8]>;
}
Expand description

A trait for writing data of variable length.

Required Methods§

source

fn to_bytes(&self) -> Cow<'a, [u8]>

Implementations on Foreign Types§

source§

impl<'a> Write<'a> for i8

source§

fn to_bytes(&self) -> Cow<'a, [u8]>

source§

impl<'a> Write<'a> for u8

source§

fn to_bytes(&self) -> Cow<'a, [u8]>

source§

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

source§

fn to_bytes(&self) -> Cow<'a, [u8]>

Implementors§