Minimal Object Notation
A Rust crate for reading and writing minimimal object notation.
Introduction
What is 'Minimal Object Notation'? It is a format that comes from simply attaching a name tag and a length tag to some information. For example: greeting|13~Hello, world!
.
Example creating miniON
s
use *;
let mut minion = new;
minion.set_content;
let minion = minion.to_string;
Will result in a String
containing greeting|13~Hello, world!
.
Example parsing miniON
s
use *;
let data = b"greeting|13~Hello, world!container|23~first|3~ONEsecond|3~TWO";
let mut incr: usize = 0;
// Parse a single object that starts at the position `incr`...
match parse_one
// ... OR parse all (sucessive) miniON objects.
match parse_all