Enum rustc_serialize::json::JsonEvent
source · [−]pub enum JsonEvent {
ObjectStart,
ObjectEnd,
ArrayStart,
ArrayEnd,
BooleanValue(bool),
I64Value(i64),
U64Value(u64),
F64Value(f64),
StringValue(String),
NullValue,
Error(ParserError),
}Expand description
The output of the streaming parser.
Variants
ObjectStart
ObjectEnd
ArrayStart
ArrayEnd
BooleanValue(bool)
I64Value(i64)
U64Value(u64)
F64Value(f64)
StringValue(String)
NullValue
Error(ParserError)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for JsonEvent
impl UnwindSafe for JsonEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes
Size for each variant:
ObjectStart: 0 bytesObjectEnd: 0 bytesArrayStart: 0 bytesArrayEnd: 0 bytesBooleanValue: 1 byteI64Value: 15 bytesU64Value: 15 bytesF64Value: 15 bytesStringValue: 31 bytesNullValue: 0 bytesError: 39 bytes