Expand description
Library for encoding/decoding Erlang External Term Format.
Examples
Decodes an atom:
use std::io::Cursor;
use eetf::{Term, Atom};
let bytes = vec![131, 100, 0, 3, 102, 111, 111];
let term = Term::decode(Cursor::new(&bytes)).unwrap();
assert_eq!(term, Term::from(Atom::from("foo")));
Encodes an atom:
use eetf::{Term, Atom};
let mut buf = Vec::new();
let term = Term::from(Atom::from("foo"));
term.encode(&mut buf).unwrap();
assert_eq!(vec![131, 100, 0, 3, 102, 111, 111], buf);
Reference
Modules
Structs
Atom.
Multiple precision integer.
Binary.
Bit string.
External Function.
Fixed width integer.
Floating point number
Improper list.
List.
Map.
Process Identifier.
Port.
Reference.
Tuple.
Enums
Errors which can occur when decoding a term
Errors which can occur when encoding a term
Internal Function.
Term.