pub trait JsoncIndexer<T, V>
where T: JsoncIndex<V>,
{ type Output: ?Sized; // Required methods fn get(value: &V, index: T) -> Option<&Self::Output>; fn get_mut(value: &mut V, index: T) -> Option<&mut Self::Output>; fn index(value: &V, index: T) -> &Self::Output; fn index_mut(value: &mut V, index: T) -> &mut Self::Output; }

Required Associated Types§

Required Methods§

source

fn get(value: &V, index: T) -> Option<&Self::Output>

source

fn get_mut(value: &mut V, index: T) -> Option<&mut Self::Output>

source

fn index(value: &V, index: T) -> &Self::Output

source

fn index_mut(value: &mut V, index: T) -> &mut Self::Output

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, I, F> JsoncIndexer<&'a str, JsoncValue<I, F>> for StringIndexer

§

type Output = JsoncValue<I, F>

source§

impl<I, F, S: SliceIndex<[JsoncValue<I, F>]> + JsoncIndex<JsoncValue<I, F>>> JsoncIndexer<S, JsoncValue<I, F>> for SliceIndexer

§

type Output = <S as SliceIndex<[JsoncValue<I, F>]>>::Output