pub struct ZeroCopyParser { /* private fields */ }Expand description
Performance-optimized parser with zero-copy patterns
Implementations§
Source§impl ZeroCopyParser
impl ZeroCopyParser
Sourcepub fn parse_identifier<'a>(
&mut self,
input: &'a str,
) -> IResult<&'a str, ZeroCopyIdentifier<'a>>
pub fn parse_identifier<'a>( &mut self, input: &'a str, ) -> IResult<&'a str, ZeroCopyIdentifier<'a>>
Parse identifier with zero-copy when possible
Sourcepub fn parse_interned_string<'a>(
&mut self,
input: &'a str,
) -> IResult<&'a str, &str>
pub fn parse_interned_string<'a>( &mut self, input: &'a str, ) -> IResult<&'a str, &str>
Parse string with interning for repeated values
Sourcepub fn parse_blob<'a>(
&self,
buffer: &mut ZeroCopyBuffer<'a>,
len: usize,
) -> Option<&'a [u8]>
pub fn parse_blob<'a>( &self, buffer: &mut ZeroCopyBuffer<'a>, len: usize, ) -> Option<&'a [u8]>
Parse binary data with zero-copy
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZeroCopyParser
impl RefUnwindSafe for ZeroCopyParser
impl Send for ZeroCopyParser
impl Sync for ZeroCopyParser
impl Unpin for ZeroCopyParser
impl UnsafeUnpin for ZeroCopyParser
impl UnwindSafe for ZeroCopyParser
Blanket Implementations§
impl<T> Allocation for T
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