Defines a trait built on top of [io::Write
] to write things into it.
Instead of writing blanket implementations it its better to use wrappers
with [write_into
] function because there might be implementation conflicts
(e.g. between [WriteInto
] for [u8
] and [WriteInto
] for any
[std::iter::IntoIterator
]).
Example
use leb128;
use ;
use ;
// https://en.wikipedia.org/wiki/LEB128
;
let mut buffer = Vec new;
write_into.unwrap;