pub struct Buffers { /* private fields */ }Expand description
A struct to hold the buffers for the parser.
Implementations§
Source§impl Buffers
impl Buffers
Sourcepub fn structural_indexes(&self) -> &[u32]
pub fn structural_indexes(&self) -> &[u32]
Borrow the byte offsets of every JSON structural character produced by
stage-1 SIMD scanning. Populated as a side effect of any parse path
that takes &mut Buffers (to_tape_with_buffers,
Deserializer::from_slice_with_buffers, etc.).
The returned slice is valid until the next parse call that reuses these buffers. Useful for downstream tooling that wants to align its own column indices against simd-json’s structural decisions without running stage-1 a second time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Buffers
impl RefUnwindSafe for Buffers
impl Send for Buffers
impl Sync for Buffers
impl Unpin for Buffers
impl UnsafeUnpin for Buffers
impl UnwindSafe for Buffers
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