simd_json::prelude::base

Trait ValueIntoObject

source
pub trait ValueIntoObject {
    type Object;

    // Required method
    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 Object

The type for Objects

Required Methods§

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> ValueIntoObject for Option<V>
where V: ValueIntoObject,

source§

impl<V, E> ValueIntoObject for Result<V, E>
where V: ValueIntoObject,

Implementors§

source§

impl ValueIntoObject for simd_json::owned::Value

source§

impl<'tape, 'input> ValueIntoObject for simd_json::tape::Value<'tape, 'input>

source§

type Object = Object<'tape, 'input>

source§

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

source§

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