Skip to main content

ValueIntoArray

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

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