Trait Resolve

Source
pub trait Resolve {
    type Value;
    type Error;

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

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

Required Associated Types§

Source

type Value

The type of value that this implementation can operate on.

Source

type Error

Error associated with Resolve

Required Methods§

Source

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

Resolve a reference to Self::Value based on the path in a Pointer.

§Errors

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

Implementations on Foreign Types§

Source§

impl Resolve for Value

Implementors§