Skip to main content

ValueIntoObject

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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>>