pub struct Parser { /* private fields */ }
Expand description
High-performance hybrid parser with SIMD acceleration
Implementations§
Source§impl Parser
impl Parser
Sourcepub fn with_config(config: ParseConfig) -> Self
pub fn with_config(config: ParseConfig) -> Self
Create parser with custom configuration
Sourcepub fn with_serde_fallback() -> Self
pub fn with_serde_fallback() -> Self
Create parser with serde fallback (for compatibility)
Sourcepub fn zero_copy_optimized() -> Self
pub fn zero_copy_optimized() -> Self
Create parser optimized for zero-copy performance
Sourcepub fn parse(&self, input: &[u8]) -> Result<Frame>
pub fn parse(&self, input: &[u8]) -> Result<Frame>
Parse JSON bytes into PJS Frame using optimal strategy
Sourcepub fn parse_with_semantics(
&self,
input: &[u8],
semantics: &SemanticMeta,
) -> Result<Frame>
pub fn parse_with_semantics( &self, input: &[u8], semantics: &SemanticMeta, ) -> Result<Frame>
Parse with explicit semantic hints
Sourcepub fn stats(&self) -> ParseStats
pub fn stats(&self) -> ParseStats
Get parser statistics (simplified for now)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Parser
impl !RefUnwindSafe for Parser
impl Send for Parser
impl !Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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