u8su 0.4.0

A utility library with u8 slices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::io::{ Write, Result };
use crate::AsBytesExt;

pub trait WriteValueExt: Write {
    fn write_value< T >(
        &mut self,
        value: &T
    ) -> Result< () >
    where
        T: AsBytesExt
    {
        self.write_all(value.as_bytes())
    }
}