mirror of https://git.sr.ht/~stygianentity/bincode
add example subsection
This commit is contained in:
parent
b1a067e151
commit
6b7239d90f
|
|
@ -4,6 +4,8 @@ A compact encoder / decoder pair that uses an binary zero-fluff encoding scheme.
|
||||||
The size of the encoded object will be the same or smaller than the size that
|
The size of the encoded object will be the same or smaller than the size that
|
||||||
the object takes up in memory in a running Rust program.
|
the object takes up in memory in a running Rust program.
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
extern crate binary_encode;
|
extern crate binary_encode;
|
||||||
extern crate serialize;
|
extern crate serialize;
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,6 @@ A compact encoder / decoder pair that uses an binary zero-fluff encoding scheme.
|
||||||
The size of the encoded object will be the same or smaller than the size that
|
The size of the encoded object will be the same or smaller than the size that
|
||||||
the object takes up in memory in a running Rust program.
|
the object takes up in memory in a running Rust program.
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
^code(./examples/basic.rs)
|
^code(./examples/basic.rs)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue