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