pub struct LazyArray<'a> { /* private fields */ }Expand description
Lazy array that parses elements on-demand
Implementations§
Source§impl<'a> LazyArray<'a>
impl<'a> LazyArray<'a>
Sourcepub fn from_scan(raw: &'a [u8], scan_result: ScanResult) -> Self
pub fn from_scan(raw: &'a [u8], scan_result: ScanResult) -> Self
Create new lazy array from scan result
Sourcepub fn get(&self, index: usize) -> Option<&'a [u8]>
pub fn get(&self, index: usize) -> Option<&'a [u8]>
Get element at index (simplified - returns raw bytes)
Sourcepub fn get_parsed(&self, index: usize) -> Option<JsonValue<'a>>
pub fn get_parsed(&self, index: usize) -> Option<JsonValue<'a>>
Get element at index, parsing if necessary (simplified)
Sourcepub fn iter(&'a self) -> LazyArrayIter<'a> ⓘ
pub fn iter(&'a self) -> LazyArrayIter<'a> ⓘ
Iterator over array elements (lazy)
Sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Check if this appears to be a numeric array for SIMD optimization
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LazyArray<'a>
impl<'a> RefUnwindSafe for LazyArray<'a>
impl<'a> Send for LazyArray<'a>
impl<'a> Sync for LazyArray<'a>
impl<'a> Unpin for LazyArray<'a>
impl<'a> UnwindSafe for LazyArray<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more