pub struct InternalParserError {
pub message: Cow<'static, str>,
pub contexts: ContextStack,
pub kind: Box<ParserErrorKind>,
}Expand description
A lightweight internal error type for winnow parsers.
Fields§
§message: Cow<'static, str>§contexts: ContextStack§kind: Box<ParserErrorKind>Trait Implementations§
Source§impl AddContext<&str, StrContext> for InternalParserError
impl AddContext<&str, StrContext> for InternalParserError
Source§fn add_context(
self,
_input: &&str,
_token: &<&str as Stream>::Checkpoint,
context: StrContext,
) -> Self
fn add_context( self, _input: &&str, _token: &<&str as Stream>::Checkpoint, context: StrContext, ) -> Self
Append to an existing error custom data Read more
Source§impl Clone for InternalParserError
impl Clone for InternalParserError
Source§fn clone(&self) -> InternalParserError
fn clone(&self) -> InternalParserError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InternalParserError
impl Debug for InternalParserError
Source§impl FromExternalError<&str, CcsdsNdmError> for InternalParserError
impl FromExternalError<&str, CcsdsNdmError> for InternalParserError
Source§fn from_external_error(input: &&str, e: CcsdsNdmError) -> Self
fn from_external_error(input: &&str, e: CcsdsNdmError) -> Self
Like
ParserError::from_input but also include an external error.Source§impl FromExternalError<&str, EnumParseError> for InternalParserError
impl FromExternalError<&str, EnumParseError> for InternalParserError
Source§fn from_external_error(_input: &&str, e: EnumParseError) -> Self
fn from_external_error(_input: &&str, e: EnumParseError) -> Self
Like
ParserError::from_input but also include an external error.Source§impl FromExternalError<&str, EpochError> for InternalParserError
impl FromExternalError<&str, EpochError> for InternalParserError
Source§fn from_external_error(_input: &&str, e: EpochError) -> Self
fn from_external_error(_input: &&str, e: EpochError) -> Self
Like
ParserError::from_input but also include an external error.Source§impl FromExternalError<&str, ParseFloatError> for InternalParserError
impl FromExternalError<&str, ParseFloatError> for InternalParserError
Source§fn from_external_error(_input: &&str, e: ParseFloatError) -> Self
fn from_external_error(_input: &&str, e: ParseFloatError) -> Self
Like
ParserError::from_input but also include an external error.Source§impl FromExternalError<&str, ParseIntError> for InternalParserError
impl FromExternalError<&str, ParseIntError> for InternalParserError
Source§fn from_external_error(_input: &&str, e: ParseIntError) -> Self
fn from_external_error(_input: &&str, e: ParseIntError) -> Self
Like
ParserError::from_input but also include an external error.Source§impl FromExternalError<&str, ValidationError> for InternalParserError
impl FromExternalError<&str, ValidationError> for InternalParserError
Source§fn from_external_error(_input: &&str, e: ValidationError) -> Self
fn from_external_error(_input: &&str, e: ValidationError) -> Self
Like
ParserError::from_input but also include an external error.Source§impl ParserError<&str> for InternalParserError
impl ParserError<&str> for InternalParserError
Source§fn from_input(_input: &&str) -> Self
fn from_input(_input: &&str) -> Self
Creates an error from the input position
Source§fn into_inner(self) -> Result<Self::Inner, Self>
fn into_inner(self) -> Result<Self::Inner, Self>
Unwrap the mode, returning the underlying error, if present
Source§fn assert(input: &I, _message: &'static str) -> Selfwhere
I: Debug,
fn assert(input: &I, _message: &'static str) -> Selfwhere
I: Debug,
Process a parser assertion
Source§fn incomplete(input: &I, _needed: Needed) -> Self
fn incomplete(input: &I, _needed: Needed) -> Self
There was not enough data to determine the appropriate action Read more
Source§fn append(self, _input: &I, _token_start: &<I as Stream>::Checkpoint) -> Self
fn append(self, _input: &I, _token_start: &<I as Stream>::Checkpoint) -> Self
Like
ParserError::from_input but merges it with the existing error. Read moreSource§fn is_backtrack(&self) -> bool
fn is_backtrack(&self) -> bool
Is backtracking and trying new parse branches allowed?
Source§impl PartialEq for InternalParserError
impl PartialEq for InternalParserError
impl StructuralPartialEq for InternalParserError
Auto Trait Implementations§
impl Freeze for InternalParserError
impl RefUnwindSafe for InternalParserError
impl Send for InternalParserError
impl Sync for InternalParserError
impl Unpin for InternalParserError
impl UnsafeUnpin for InternalParserError
impl UnwindSafe for InternalParserError
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