JsonPointerHandler

Trait JsonPointerHandler 

Source
pub trait JsonPointerHandler<'x, P: Property, E: Element>: Debug {
    // Required methods
    fn eval_jptr<'y>(
        &'y self,
        pointer: JsonPointerIter<'_, P>,
        results: &mut Vec<Cow<'y, Value<'x, P, E>>>,
    );
    fn patch_jptr<'y: 'x>(
        &mut self,
        pointer: JsonPointerIter<'_, P>,
        value: Value<'y, P, E>,
    ) -> bool;
    fn to_value<'y>(&'y self) -> Cow<'y, Value<'x, P, E>>;
}

Required Methods§

Source

fn eval_jptr<'y>( &'y self, pointer: JsonPointerIter<'_, P>, results: &mut Vec<Cow<'y, Value<'x, P, E>>>, )

Source

fn patch_jptr<'y: 'x>( &mut self, pointer: JsonPointerIter<'_, P>, value: Value<'y, P, E>, ) -> bool

Source

fn to_value<'y>(&'y self) -> Cow<'y, Value<'x, P, E>>

Implementations on Foreign Types§

Source§

impl<'x, P: Property, E: Element, T> JsonPointerHandler<'x, P, E> for Vec<T>
where T: JsonPointerHandler<'x, P, E> + for<'y> TryFrom<Value<'y, P, E>> + 'static,

Source§

fn eval_jptr<'y>( &'y self, pointer: JsonPointerIter<'_, P>, results: &mut Vec<Cow<'y, Value<'x, P, E>>>, )

Source§

fn patch_jptr<'y: 'x>( &mut self, pointer: JsonPointerIter<'_, P>, value: Value<'y, P, E>, ) -> bool

Source§

fn to_value<'y>(&'y self) -> Cow<'y, Value<'x, P, E>>

Source§

impl<'x, P: Property, E: Element, T, S: BuildHasher + Default> JsonPointerHandler<'x, P, E> for HashMap<String, T, S>
where T: JsonPointerHandler<'x, P, E> + for<'y> TryFrom<Value<'y, P, E>> + 'static,

Source§

fn eval_jptr<'y>( &'y self, pointer: JsonPointerIter<'_, P>, results: &mut Vec<Cow<'y, Value<'x, P, E>>>, )

Source§

fn patch_jptr<'y: 'x>( &mut self, pointer: JsonPointerIter<'_, P>, value: Value<'y, P, E>, ) -> bool

Source§

fn to_value<'y>(&'y self) -> Cow<'y, Value<'x, P, E>>

Implementors§

Source§

impl<'x, P: Property, E: Element> JsonPointerHandler<'x, P, E> for Value<'x, P, E>