Trait simd_json::prelude::base::ValueIntoContainer

source ·
pub trait ValueIntoContainer {
    type Array;
    type Object;

    // Required methods
    fn into_array(self) -> Option<Self::Array>;
    fn into_object(self) -> Option<Self::Object>;
}
Expand description

A trait that specifies how to turn the Value into it’s sub types

Required Associated Types§

source

type Array

The type for Arrays

source

type Object

The type for Objects

Required Methods§

source

fn into_array(self) -> Option<Self::Array>

Tries to turn the value into it’s array representation

source

fn into_object(self) -> Option<Self::Object>

Tries to turn the value into it’s object representation

Implementations on Foreign Types§

source§

impl<V> ValueIntoContainer for Option<V>

source§

impl<V, E> ValueIntoContainer for Result<V, E>

Implementors§

source§

impl ValueIntoContainer for simd_json::value::owned::Value

source§

impl<'tape, 'input> ValueIntoContainer for simd_json::value::tape::Value<'tape, 'input>

source§

type Array = Array<'tape, 'input>

source§

type Object = Object<'tape, 'input>

source§

impl<'value> ValueIntoContainer for simd_json::value::borrowed::Value<'value>

source§

type Array = Vec<Value<'value>>

source§

type Object = SizedHashMap<Cow<'value, str>, Value<'value>>