pub trait Instance<'a>: Copy {
type Array: ArrayView<'a, Item = Self>;
type Object: ObjectView<'a, Item = Self>;
// Required method
fn view(self) -> View<'a, Self>;
// Provided method
fn kind(self) -> Kind { ... }
}Expand description
A JSON value the evaluator can read in place. Cheap to copy (a reference or a handle); values reached through it
(items, property values, strings) live as long as 'a.
Required Associated Types§
Sourcetype Object: ObjectView<'a, Item = Self>
type Object: ObjectView<'a, Item = Self>
An object of named instances.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".