Trait simd_json::prelude::ValueAsMutArray

source ·
pub trait ValueAsMutArray {
    type Array;

    // Required method
    fn as_array_mut(&mut self) -> Option<&mut Self::Array>;
}
Expand description

Prelude to include needed traits Mutatability for Array values

Required Associated Types§

source

type Array

The type for Arrays

Required Methods§

source

fn as_array_mut(&mut self) -> Option<&mut Self::Array>

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

Implementors§

source§

impl ValueAsMutArray for simd_json::value::owned::Value

§

type Array = Vec<Value>

source§

impl<'borrow, 'tape, 'input> ValueAsMutArray for simd_json::value::lazy::Value<'borrow, 'tape, 'input>

§

type Array = Vec<Value<'input>>

source§

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

§

type Array = Vec<Value<'value>>