simd_json::prelude

Trait ValueTryAsArrayMut

source
pub trait ValueTryAsArrayMut {
    type Array: Array;

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

try_as_array_mut access to array value types

Required Associated Types§

source

type Array: Array

The array structure

Required Methods§

source

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

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

§Errors

if the requested type doesn’t match the actual type

Implementors§