write-into
Defines a trait built on top of io::Write to write things into it.
use io;
The crate also provides wrappers, such as BigEndian and LittleEndian, to write values
in particular formats.
Example
use ;
let mut buffer = Vecnew;
write_into.unwrap;
assert_eq!;
Wrappers
| Wrapper | Used to write values... |
|---|---|
BigEndian |
... in big endian byte order. |
LittleEndian |
... in little endian byte order. |
Plain |
... as they are represented in memory. |
Sequence |
... from IntoIterator. |
Sized |
... prepended with size of their representation. |
SizedSequence |
... from IntoIterator with known size. |
Sleb128 |
... in LEB-128 format (signed). |
Uleb128 |
... in LEB-128 format (unsigned). |