[][src]Enum simd_json::value::owned::Value

pub enum Value {
    Null,
    Bool(bool),
    I64(i64),
    F64(f64),
    String(String),
    Array(Vec<Value>),
    Object(Map),
}

Variants

Null
Bool(bool)
I64(i64)
F64(f64)
String(String)
Array(Vec<Value>)
Object(Map)

Methods

impl Value[src]

pub fn to_string(&self) -> String[src]

pub fn to_string_pp(&self) -> String[src]

pub fn write<'writer, W>(&self, w: &mut W) -> Result<()> where
    W: 'writer + Write
[src]

pub fn write_pp<'writer, W>(&self, w: &mut W) -> Result<()> where
    W: 'writer + Write
[src]

Trait Implementations

impl ValueTrait for Value[src]

type Map = Map

type Array = Vec<Value>

impl Default for Value[src]

impl Clone for Value[src]

impl PartialEq<()> for Value[src]

impl PartialEq<bool> for Value[src]

impl PartialEq<str> for Value[src]

impl<'_> PartialEq<&'_ str> for Value[src]

impl PartialEq<String> for Value[src]

impl PartialEq<i8> for Value[src]

impl PartialEq<i16> for Value[src]

impl PartialEq<i32> for Value[src]

impl PartialEq<i64> for Value[src]

impl PartialEq<f32> for Value[src]

impl PartialEq<f64> for Value[src]

impl PartialEq<Value> for Value[src]

impl<'a> From<Value> for Value<'a>[src]

impl<'_> From<Value<'_>> for Value[src]

impl<'_> From<&'_ str> for Value[src]

impl From<String> for Value[src]

impl<'_> From<&'_ String> for Value[src]

impl From<bool> for Value[src]

impl From<()> for Value[src]

impl From<i8> for Value[src]

impl From<i16> for Value[src]

impl From<i32> for Value[src]

impl From<i64> for Value[src]

impl<'_> From<&'_ i8> for Value[src]

impl<'_> From<&'_ i16> for Value[src]

impl<'_> From<&'_ i32> for Value[src]

impl<'_> From<&'_ i64> for Value[src]

impl From<u8> for Value[src]

impl From<u16> for Value[src]

impl From<u32> for Value[src]

impl From<u64> for Value[src]

impl<'_> From<&'_ u8> for Value[src]

impl<'_> From<&'_ u16> for Value[src]

impl<'_> From<&'_ u32> for Value[src]

impl<'_> From<&'_ u64> for Value[src]

impl From<f32> for Value[src]

impl From<f64> for Value[src]

impl<'_> From<&'_ f32> for Value[src]

impl<'_> From<&'_ f64> for Value[src]

impl<S> From<Vec<S>> for Value where
    Value: From<S>, 
[src]

impl<'_> Index<&'_ str> for Value[src]

type Output = Value

The returned type after indexing.

impl Debug for Value[src]

impl Display for Value[src]

impl TryFrom<Value> for OwnedValue[src]

type Error = SerdeConversionError

The type returned in the event of a conversion error.

impl<V: Into<Value>> FromIterator<V> for Value[src]

impl<K: Into<String>, V: Into<Value>> FromIterator<(K, V)> for Value[src]

impl TryInto<Value> for OwnedValue[src]

type Error = SerdeConversionError

The type returned in the event of a conversion error.

impl<'de> Deserializer<'de> for Value[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization. Read more

impl Serialize for Value[src]

impl<'de> Deserialize<'de> for Value[src]

Auto Trait Implementations

impl Send for Value

impl Unpin for Value

impl Sync for Value

impl UnwindSafe for Value

impl RefUnwindSafe for Value

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]