Trait ResolveMut

Source
pub trait ResolveMut {
    type Value;
    type Error;

    // Required method
    fn resolve_mut(
        &mut self,
        ptr: &Pointer,
    ) -> Result<&mut Self::Value, Self::Error>;
}
Expand description

A trait implemented by types which can resolve a mutable reference to a value type from a path represented by a JSON Pointer.

Required Associated Types§

Source

type Value

The type of value that is being resolved.

Source

type Error

Error associated with ResolveMut

Required Methods§

Source

fn resolve_mut( &mut self, ptr: &Pointer, ) -> Result<&mut Self::Value, Self::Error>

Resolve a mutable reference to a serde_json::Value based on the path in a JSON Pointer.

§Errors

Returns a Self::Error if the Pointer can not be resolved.

Implementations on Foreign Types§

Source§

impl ResolveMut for Value

Implementors§