pub struct FastZeroCopyParser { /* private fields */ }
Expand description
Fast zero-copy streaming parser
Implementations§
Source§impl FastZeroCopyParser
impl FastZeroCopyParser
pub fn new() -> Self
Sourcepub fn parse_chunk(
&mut self,
chunk: &[u8],
) -> Result<Vec<WorkingStreamingElement>, ParseError>
pub fn parse_chunk( &mut self, chunk: &[u8], ) -> Result<Vec<WorkingStreamingElement>, ParseError>
Fast element extraction using memchr for initial scanning
Sourcepub fn stats(&self) -> WorkingStreamingStats
pub fn stats(&self) -> WorkingStreamingStats
Get current statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FastZeroCopyParser
impl RefUnwindSafe for FastZeroCopyParser
impl Send for FastZeroCopyParser
impl Sync for FastZeroCopyParser
impl Unpin for FastZeroCopyParser
impl UnwindSafe for FastZeroCopyParser
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