Enum rustc_driver::json::Json [−][src]
pub enum Json {
I64(i64),
U64(u64),
F64(f64),
String(String),
Boolean(bool),
Array(Vec<Json, Global>),
Object(BTreeMap<String, Json>),
Null,
}Expand description
Represents a json value
Variants
I64(i64)
Tuple Fields
0: i64U64(u64)
Tuple Fields
0: u64F64(f64)
Tuple Fields
0: f64String(String)
Tuple Fields
0: StringBoolean(bool)
Tuple Fields
0: boolArray(Vec<Json, Global>)
Object(BTreeMap<String, Json>)
Null
Auto Trait Implementations
impl RefUnwindSafe for Json
impl UnwindSafe for Json
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: 32 bytes
Size for each variant:
I64: 15 bytesU64: 15 bytesF64: 15 bytesString: 31 bytesBoolean: 1 byteArray: 31 bytesObject: 31 bytesNull: 0 bytes