simd_json::prelude

Trait ValueTryIntoArray

source
pub trait ValueTryIntoArray {
    type Array;

    // Required method
    fn try_into_array(self) -> Result<Self::Array, TryTypeError>;
}
Expand description

A trait that specifies how to turn the Value into it’s sub types with error handling

Required Associated Types§

source

type Array

The type for Arrays

Required Methods§

source

fn try_into_array(self) -> Result<Self::Array, TryTypeError>

Tries to turn the value into it’s array representation

§Errors

if the requested type doesn’t match the actual type

Implementors§