zjson 0.1.5

Parse JSON with zero allocation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Status<Machine, Result> {
    Parsing(Machine),
    Done(Result),
}

// impl<Machine, Result> Status<Machine, Result> {
//     pub fn map<U, F>(self, f: F) -> Status<U, Result>
//     where
//         F: FnOnce(Machine) -> U,
//     {
//         match self {
//             Self::Parsing(machine) => Status::Parsing(f(machine)),
//             Self::Done(result) => Status::Done(result),
//         }
//     }
// }