Skip to main content

JsonPointeeExt

Trait JsonPointeeExt 

Source
pub trait JsonPointeeExt: JsonPointee {
    // Provided method
    fn pointer<'a, T>(&'a self, path: &str) -> Result<T, JsonPointerError>
       where T: JsonPointerTarget<'a> { ... }
}
Expand description

Convenience methods for JsonPointee types.

Provided Methods§

Source

fn pointer<'a, T>(&'a self, path: &str) -> Result<T, JsonPointerError>
where T: JsonPointerTarget<'a>,

Parses a JSON pointer string, resolves it against this value, and extracts the result as T.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P> JsonPointeeExt for P
where P: JsonPointee + ?Sized,