simd_json::value::prelude::derived

Trait ValueArrayAccess

source
pub trait ValueArrayAccess<I> {
    type Target: ?Sized;

    // Required method
    fn get_idx(&self, i: I) -> Option<&Self::Target>;
}
Expand description

Access to a value as an array

Required Associated Types§

source

type Target: ?Sized

The target for nested lookups

Required Methods§

source

fn get_idx(&self, i: I) -> Option<&Self::Target>

Gets a ref to a value based on n index, returns None if the current Value isn’t an Array or doesn’t contain the index it was asked for.

Implementors§

source§

impl<I, T> ValueArrayAccess<I> for T
where T: ValueAsArray, <T as ValueAsArray>::Array: Indexed<I>,