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

pub enum Value {
    Static(StaticNode),
    String(String),
    Array(Vec<Value>),
    Object(Box<Object>),
}

Owned JSON-DOM Value, consider using the ValueTrait to access it's content. This is slower then the BorrowedValue as a tradeoff for getting rid of lifetimes.

Variants

Static(StaticNode)

Static values

String(String)

string type

Array(Vec<Value>)

array type

Object(Box<Object>)

object type

Methods

impl Value[src]

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

Encodes the value into it's JSON representation as a string

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

Encodes the value into it's JSON representation as a string (pretty printed)

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

Encodes the value into it's JSON representation into a Writer

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

Encodes the value into it's JSON representation into a Writer, pretty printed

Trait Implementations

impl ValueBuilder for Value[src]

impl MutableValue for Value[src]

type Key = String

The type for Objects

impl Value for Value[src]

type Key = String

The type for Objects

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

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

impl From<StaticNode> for Value[src]

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

impl<'v> From<Cow<'v, 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<u8> for Value[src]

impl From<u16> for Value[src]

impl From<u32> for Value[src]

impl From<u64> for Value[src]

impl From<usize> 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 From<HashMap<String, Value, ABuildHasher>> for Value[src]

impl Clone for Value[src]

impl Default for Value[src]

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

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

impl PartialEq<Value> for Value[src]

impl<'_, T> PartialEq<&'_ T> for Value where
    Value: PartialEq<T>, 
[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<i128> for Value[src]

impl PartialEq<u8> for Value[src]

impl PartialEq<u16> for Value[src]

impl PartialEq<u32> for Value[src]

impl PartialEq<u64> for Value[src]

impl PartialEq<usize> for Value[src]

impl PartialEq<u128> for Value[src]

impl PartialEq<f32> for Value[src]

impl PartialEq<f64> for Value[src]

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<'_> Index<&'_ str> for Value[src]

type Output = Self

The returned type after indexing.

impl Index<usize> for Value[src]

type Output = Self

The returned type after indexing.

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

impl IndexMut<usize> for Value[src]

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

impl<K: ToString, 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 Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

impl RefUnwindSafe for Value

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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

type Error = !

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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]