simd_json::value::prelude::base

Trait ValueAsMutObject

Source
pub trait ValueAsMutObject {
    type Object;

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

Mutatability for Object values

Required Associated Types§

Source

type Object

The type for Objects

Required Methods§

Source

fn as_object_mut(&mut self) -> Option<&mut Self::Object>

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

Implementors§

Source§

impl ValueAsMutObject for simd_json::owned::Value

Source§

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

Source§

type Object = SizedHashMap<Cow<'input, str>, Value<'input>>

Source§

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

Source§

type Object = SizedHashMap<Cow<'value, str>, Value<'value>>