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§
Sourcefn pointer<'a, T>(&'a self, path: &str) -> Result<T, JsonPointerError>where
T: JsonPointerTarget<'a>,
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.