Enum miniserde::json::Value [−][src]
Any valid JSON value.
This type has a non-recursive drop implementation so it is safe to build arbitrarily deeply nested instances.
use miniserde::json::{Array, Value}; let mut value = Value::Null; for _ in 0..100000 { let mut array = Array::new(); array.push(value); value = Value::Array(array); } // no stack overflow when `value` goes out of scope
Variants
Null
Bool(bool)
Number(Number)
String(String)
Array(Array)
Object(Object)
Trait Implementations
impl Clone for Value
[src]
impl Clone for Value
fn clone(&self) -> Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Value
[src]
impl Debug for Value
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Value
[src]
impl Default for Value
impl Serialize for Value
[src]
impl Serialize for Value
impl Deserialize for Value
[src]
impl Deserialize for Value
fn begin(out: &mut Option<Self>) -> &mut Visitor
[src]
fn begin(out: &mut Option<Self>) -> &mut Visitor
The only correct implementation of this method is: Read more
impl FromIterator<Value> for Array
[src]
impl FromIterator<Value> for Array
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Value>,
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Value>,
Creates a value from an iterator. Read more