simd_json::value::prelude::base

Trait ValueAsObject

source
pub trait ValueAsObject {
    type Object: Object;

    // Required method
    fn as_object(&self) -> Option<&Self::Object>;
}
Expand description

Trait to allow Value as an object

Required Associated Types§

source

type Object: Object

The object structure

Required Methods§

source

fn as_object(&self) -> Option<&Self::Object>

Tries to represent the value as an object and returns a reference to it

Implementations on Foreign Types§

source§

impl<V> ValueAsObject for Option<V>
where V: ValueAsObject,

source§

impl<V> ValueAsObject for &V
where V: ValueAsObject,

source§

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

Implementors§

source§

impl ValueAsObject for simd_json::owned::Value

source§

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

source§

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