pub struct ZeroCopyParser<'a> { /* private fields */ }Expand description
Zero-copy JSON parser implementation
Implementations§
Source§impl<'a> ZeroCopyParser<'a>
impl<'a> ZeroCopyParser<'a>
Sourcepub fn with_security_config(security_config: SecurityConfig) -> Self
pub fn with_security_config(security_config: SecurityConfig) -> Self
Create parser with custom security configuration
Sourcepub fn parse_value(&mut self) -> DomainResult<LazyJsonValue<'a>>
pub fn parse_value(&mut self) -> DomainResult<LazyJsonValue<'a>>
Parse JSON value starting at current position
Trait Implementations§
Source§impl<'a> Default for ZeroCopyParser<'a>
impl<'a> Default for ZeroCopyParser<'a>
Source§impl<'a> LazyParser<'a> for ZeroCopyParser<'a>
impl<'a> LazyParser<'a> for ZeroCopyParser<'a>
type Output = LazyJsonValue<'a>
type Error = DomainError
Source§fn parse_lazy(&mut self, input: &'a [u8]) -> Result<Self::Output, Self::Error>
fn parse_lazy(&mut self, input: &'a [u8]) -> Result<Self::Output, Self::Error>
Parse input lazily, returning references into the original buffer
Source§fn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Check if parsing is complete
Auto Trait Implementations§
impl<'a> Freeze for ZeroCopyParser<'a>
impl<'a> RefUnwindSafe for ZeroCopyParser<'a>
impl<'a> Send for ZeroCopyParser<'a>
impl<'a> Sync for ZeroCopyParser<'a>
impl<'a> Unpin for ZeroCopyParser<'a>
impl<'a> UnwindSafe for ZeroCopyParser<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more