Enum rustc_serialize::json::JsonEvent [−][src]
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
BooleanValue(bool)
Tuple Fields of BooleanValue
0: bool
I64Value(i64)
Tuple Fields of I64Value
0: i64
U64Value(u64)
Tuple Fields of U64Value
0: u64
F64Value(f64)
Tuple Fields of F64Value
0: f64
StringValue(String)
Tuple Fields of StringValue
0: String
Error(ParserError)
Tuple Fields of Error
0: 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