pub struct SonicParser { /* private fields */ }
Expand description
High-performance parser using sonic-rs with PJS semantic analysis
Implementations§
Source§impl SonicParser
impl SonicParser
Sourcepub fn with_config(config: SonicConfig) -> Self
pub fn with_config(config: SonicConfig) -> Self
Create a new SonicParser with custom configuration
Sourcepub fn parse(&self, input: &[u8]) -> Result<Frame>
pub fn parse(&self, input: &[u8]) -> Result<Frame>
Parse JSON input using sonic-rs with PJS semantics (optimized)
Sourcepub fn get_stats(&self) -> SonicStats
pub fn get_stats(&self) -> SonicStats
Get performance statistics
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SonicParser
impl !RefUnwindSafe for SonicParser
impl Send for SonicParser
impl !Sync for SonicParser
impl Unpin for SonicParser
impl UnwindSafe for SonicParser
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