chisel-json 0.1.2

Another JSON parser for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::borrow::Cow;

/// Enumeration of the various different event types emitted by the parser
pub enum EventType {
    StartObject,
    EndObject,
    StartArray,
    EndArray,
}

pub struct Event<'a> {
    /// The type of the event
    pub event_type: EventType,

    /// An in-document path for relating to the event
    pub path: Cow<'a, str>,
}