simd_json::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>,