[][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

NullBool(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>

fn is_bool(&self) -> bool[src]

fn is_i64(&self) -> bool[src]

fn is_u64(&self) -> bool[src]

fn is_f64(&self) -> bool[src]

fn is_string(&self) -> bool[src]

fn is_array(&self) -> bool[src]

fn is_object(&self) -> bool[src]

impl PartialEq<()> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<bool> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<str> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<String> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i8> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i16> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i32> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i64> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<f32> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<f64> for Value[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Value> for Value[src]

impl Clone for Value[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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 Default for Value[src]

impl Debug for Value[src]

impl Display for Value[src]

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

type Output = Value

The returned type after indexing.

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

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

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

fn is_human_readable(&self) -> bool[src]

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more

impl Serialize for Value[src]

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

Auto Trait Implementations

impl Send for Value

impl Sync 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> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[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]