Struct winnow::error::VerboseError
source · pub struct VerboseError<I: Clone, C = &'static str> {
pub errors: Vec<(I, VerboseErrorKind<C>)>,
}
👎Deprecated since 0.5.8: Replaced with
ContextError
Expand description
Deprecated, replaced with ContextError
Fields§
§errors: Vec<(I, VerboseErrorKind<C>)>
👎Deprecated since 0.5.8: Replaced with
ContextError
Accumulated error information
Implementations§
source§impl<'i, I: ToOwned, C> VerboseError<&'i I, C>
impl<'i, I: ToOwned, C> VerboseError<&'i I, C>
sourcepub fn into_owned(self) -> VerboseError<<I as ToOwned>::Owned, C>
pub fn into_owned(self) -> VerboseError<<I as ToOwned>::Owned, C>
Obtaining ownership
source§impl<I: Clone, C> VerboseError<I, C>
impl<I: Clone, C> VerboseError<I, C>
sourcepub fn map_input<I2: Clone, O>(self, op: O) -> VerboseError<I2, C>where
O: Fn(I) -> I2,
pub fn map_input<I2: Clone, O>(self, op: O) -> VerboseError<I2, C>where
O: Fn(I) -> I2,
Translate the input type
Trait Implementations§
source§impl<I: Clone, C> AddContext<I, C> for VerboseError<I, C>
impl<I: Clone, C> AddContext<I, C> for VerboseError<I, C>
source§fn add_context(self, input: &I, ctx: C) -> Self
fn add_context(self, input: &I, ctx: C) -> Self
Append to an existing error custom data Read more
source§impl<I: Clone + Clone, C: Clone> Clone for VerboseError<I, C>
impl<I: Clone + Clone, C: Clone> Clone for VerboseError<I, C>
source§fn clone(&self) -> VerboseError<I, C>
fn clone(&self) -> VerboseError<I, C>
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<I: Clone + Debug + Display + Sync + Send + 'static, C: Display + Debug> Error for VerboseError<I, C>
impl<I: Clone + Debug + Display + Sync + Send + 'static, C: Display + Debug> Error for VerboseError<I, C>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<I: Clone, C, E> FromExternalError<I, E> for VerboseError<I, C>
impl<I: Clone, C, E> FromExternalError<I, E> for VerboseError<I, C>
source§fn from_external_error(input: &I, kind: ErrorKind, _e: E) -> Self
fn from_external_error(input: &I, kind: ErrorKind, _e: E) -> Self
Create a new error from an input position and an external error
source§impl<I: Clone, C> ParserError<I> for VerboseError<I, C>
impl<I: Clone, C> ParserError<I> for VerboseError<I, C>
impl<I: Eq + Clone, C: Eq> Eq for VerboseError<I, C>
impl<I: Clone, C> StructuralPartialEq for VerboseError<I, C>
Auto Trait Implementations§
impl<I, C> Freeze for VerboseError<I, C>
impl<I, C> RefUnwindSafe for VerboseError<I, C>where
I: RefUnwindSafe,
C: RefUnwindSafe,
impl<I, C> Send for VerboseError<I, C>
impl<I, C> Sync for VerboseError<I, C>
impl<I, C> Unpin for VerboseError<I, C>
impl<I, C> UnwindSafe for VerboseError<I, C>where
I: UnwindSafe,
C: UnwindSafe,
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
)