[][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 get(&self, k: &str) -> Option<&Value>[src]

pub fn get_mut(&mut self, k: &str) -> Option<&mut Value>[src]

pub fn is_null(&self) -> bool[src]

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

pub fn as_bool(&self) -> Option<bool>[src]

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

pub fn as_i64(&self) -> Option<i64>[src]

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

pub fn as_u64(&self) -> Option<u64>[src]

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

pub fn as_f64(&self) -> Option<f64>[src]

pub fn cast_f64(&self) -> Option<f64>[src]

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

pub fn as_string(&self) -> Option<String>[src]

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

pub fn as_array(&self) -> Option<&Vec<Value>>[src]

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

pub fn as_object(&self) -> Option<&Map>[src]

Trait Implementations

impl PartialEq<()> for Value[src]

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

This method tests for !=.

impl PartialEq<bool> for Value[src]

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

This method tests for !=.

impl PartialEq<str> for Value[src]

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

This method tests for !=.

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

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

This method tests for !=.

impl PartialEq<String> for Value[src]

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

This method tests for !=.

impl PartialEq<i8> for Value[src]

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

This method tests for !=.

impl PartialEq<i16> for Value[src]

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

This method tests for !=.

impl PartialEq<i32> for Value[src]

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

This method tests for !=.

impl PartialEq<i64> for Value[src]

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

This method tests for !=.

impl PartialEq<f32> for Value[src]

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

This method tests for !=.

impl PartialEq<f64> for Value[src]

#[must_use]
default 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]

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

Performs copy-assignment from source. Read more

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

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

type Output = Value

The returned type after indexing.

impl Display for Value[src]

impl Serialize 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

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

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

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

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

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]