pub struct EmptyError;
Expand description
Track an error occurred without any other StrContext
Trait Implementations§
Source§impl<I: Stream, C> AddContext<I, C> for EmptyError
impl<I: Stream, C> AddContext<I, C> for EmptyError
Source§fn add_context(
self,
_input: &I,
_token_start: &<I as Stream>::Checkpoint,
_context: C,
) -> Self
fn add_context( self, _input: &I, _token_start: &<I as Stream>::Checkpoint, _context: C, ) -> Self
Append to an existing error custom data Read more
Source§impl Clone for EmptyError
impl Clone for EmptyError
Source§fn clone(&self) -> EmptyError
fn clone(&self) -> EmptyError
Returns a copy 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 EmptyError
impl Debug for EmptyError
Source§impl Display for EmptyError
impl Display for EmptyError
Source§impl ErrorConvert<EmptyError> for EmptyError
impl ErrorConvert<EmptyError> for EmptyError
Source§fn convert(self) -> EmptyError
fn convert(self) -> EmptyError
Transform to another error type
Source§impl<I, E> FromExternalError<I, E> for EmptyError
impl<I, E> FromExternalError<I, E> for EmptyError
Source§fn from_external_error(_input: &I, _e: E) -> Self
fn from_external_error(_input: &I, _e: E) -> Self
Like
ParserError::from_input
but also include an external error.Source§impl<I: Stream> ParserError<I> for EmptyError
impl<I: Stream> ParserError<I> for EmptyError
Source§type Inner = EmptyError
type Inner = EmptyError
Generally,
Self
Read moreSource§fn from_input(_: &I) -> Self
fn from_input(_: &I) -> 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 EmptyError
impl PartialEq for EmptyError
impl Copy for EmptyError
impl Eq for EmptyError
impl StructuralPartialEq for EmptyError
Auto Trait Implementations§
impl Freeze for EmptyError
impl RefUnwindSafe for EmptyError
impl Send for EmptyError
impl Sync for EmptyError
impl Unpin for EmptyError
impl UnwindSafe for EmptyError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)