simd_json::derived

Trait ValueTryAsArray

Source
pub trait ValueTryAsArray {
    type Array: Array;

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

try_as_* access to array value types

Required Associated Types§

Source

type Array: Array

The array structure

Required Methods§

Source

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

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

§Errors

if the requested type doesn’t match the actual type

Implementors§