jsonptr::resolve

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§