Trait json_with_comments::value::index::JsoncIndexer
source · 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§
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
Object Safety§
This trait is not object safe.