ppbert 0.10.0

Simple pretty printer for Erlang's External Term Format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod bert1;
mod bert2;
mod disk_log;
mod basic;

pub use bert1::Bert1Parser;
pub use bert2::Bert2Parser;
pub use disk_log::DiskLogParser;

use crate::bertterm::BertTerm;
use crate::error::Result;

pub trait Parser {
    fn set_input(&mut self, bytes: Vec<u8>);
    fn next(&mut self) -> Option<Result<BertTerm>>;
}