simd_json::prelude

Trait ValueIntoArray

source
pub trait ValueIntoArray {
    type Array;

    // Required method
    fn into_array(self) -> Option<Self::Array>;
}
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

Required Methods§

source

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

Tries to turn the value into it’s array representation

Implementations on Foreign Types§

source§

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

source§

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

Implementors§

source§

impl ValueIntoArray for simd_json::owned::Value

source§

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

source§

type Array = Array<'tape, 'input>

source§

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

source§

type Array = Vec<Value<'value>>