simd_json::value::prelude::base

Trait ValueTryAsMutObject

source
pub trait ValueTryAsMutObject {
    type Object;

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

Mutatability for Object values

Required Associated Types§

source

type Object

The type for Objects

Required Methods§

source

fn try_as_object_mut(&mut self) -> Result<&mut Self::Object, TryTypeError>

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

§Errors

if the requested type doesn’t match the actual type

Implementors§