pub struct JsonReader<R> { /* private fields */ }Expand description
Streaming JSON reader that handles buffer management automatically.
Implementations§
Source§impl<R: Read> JsonReader<R>
impl<R: Read> JsonReader<R>
Sourcepub fn with_capacity(reader: R, capacity: usize) -> Self
pub fn with_capacity(reader: R, capacity: usize) -> Self
Create a new streaming JSON reader with custom buffer capacity.
Sourcepub fn next_token(&mut self) -> Option<Result<SpannedJsonToken, ReaderError>>
pub fn next_token(&mut self) -> Option<Result<SpannedJsonToken, ReaderError>>
Read the next token from the stream.
Auto Trait Implementations§
impl<R> Freeze for JsonReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for JsonReader<R>where
R: RefUnwindSafe,
impl<R> Send for JsonReader<R>where
R: Send,
impl<R> Sync for JsonReader<R>where
R: Sync,
impl<R> Unpin for JsonReader<R>where
R: Unpin,
impl<R> UnwindSafe for JsonReader<R>where
R: UnwindSafe,
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