[][src]Trait baffa::WriteBufExt

pub trait WriteBufExt: WriteBuf {
    fn write_value<T: Copy + Sized>(&mut self, val: &T) -> usize { ... }
}

Extension trait to provide extra functionality

Provided methods

fn write_value<T: Copy + Sized>(&mut self, val: &T) -> usize

Writes supplied value by performing bit copy, advancing length and returning number of bytes written.

If value cannot fit, does nothing

Loading content...

Implementors

impl<T: WriteBuf> WriteBufExt for T[src]

Loading content...