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

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

Variants

NullBool(bool)F64(f64)I64(i64)String(Cow<'a, str>)Array(Vec<Value<'a>>)Object(Map<'a>)

Methods

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

pub fn get(&self, k: &str) -> Option<&Value<'a>>[src]

pub fn get_mut(&mut self, k: &str) -> Option<&mut Value<'a>>[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<'a> PartialEq<()> for Value<'a>[src]

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

This method tests for !=.

impl<'a> PartialEq<bool> for Value<'a>[src]

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

This method tests for !=.

impl<'a> PartialEq<str> for Value<'a>[src]

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

This method tests for !=.

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

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

This method tests for !=.

impl<'a> PartialEq<String> for Value<'a>[src]

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

This method tests for !=.

impl<'a> PartialEq<i8> for Value<'a>[src]

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

This method tests for !=.

impl<'a> PartialEq<i16> for Value<'a>[src]

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

This method tests for !=.

impl<'a> PartialEq<i32> for Value<'a>[src]

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

This method tests for !=.

impl<'a> PartialEq<i64> for Value<'a>[src]

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

This method tests for !=.

impl<'a> PartialEq<f32> for Value<'a>[src]

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

This method tests for !=.

impl<'a> PartialEq<f64> for Value<'a>[src]

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

This method tests for !=.

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

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

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

Performs copy-assignment from source. Read more

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Output = Value<'a>

The returned type after indexing.

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

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

impl<'de> Deserializer<'de> for Value<'de>[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<'de>[src]

Auto Trait Implementations

impl<'a> Send for Value<'a>

impl<'a> Sync for Value<'a>

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.