Trait simd_json::prelude::ValueArrayAccess

source ·
pub trait ValueArrayAccess {
    type Target;

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

Prelude to include needed traits Access to a value as an array

Required Associated Types§

source

type Target

The target for nested lookups

Required Methods§

source

fn get_idx(&self, i: usize) -> 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§