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 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 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, _kind: ErrorKind, _e: E) -> Self
fn from_external_error(_input: &I, _kind: ErrorKind, _e: E) -> Self
Like
ParserError::from_error_kind but also include an external error.Source§impl<I: Stream> ParserError<I> for EmptyError
impl<I: Stream> ParserError<I> for EmptyError
Source§fn from_error_kind(_: &I, _: ErrorKind) -> Self
fn from_error_kind(_: &I, _: ErrorKind) -> Self
👎Deprecated since 0.6.26: replaced with
ParserError::from_inputDeprecated, replaced with
ParserError::from_inputSource§fn append(
self,
_input: &I,
_token_start: &<I as Stream>::Checkpoint,
_kind: ErrorKind,
) -> Self
fn append( self, _input: &I, _token_start: &<I as Stream>::Checkpoint, _kind: ErrorKind, ) -> Self
Like
ParserError::from_error_kind but merges it with the existing error. Read moreSource§fn from_input(input: &I) -> Self
fn from_input(input: &I) -> Self
Creates an error from the input position
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