write_into
Defines a trait built on top of io::Write
to write things into it.
Example
use ;
let mut buffer = Vec new;
write_into.unwrap;
assert_eq!;
write_into
Defines a trait built on top of io::Write
to write things into it.
use write_into::{BigEndian, WriteInto, write_into};
let mut buffer = Vec::new();
write_into(&mut buffer, BigEndian(0xCAFEBABEu32)).unwrap();
assert_eq!(&buffer, &[0xCA, 0xFE, 0xBA, 0xBE]);