pub struct TryReducerError;Expand description
Repeat parsers can be customized with a custom try reduce function, see the TryReducer trait. This error will be used for reducers that return Option<()> or bool.
Reducers that return Result<(),E> will use the E from the result, and reducers that return () will never fail.
Trait Implementations§
Source§impl Clone for TryReducerError
impl Clone for TryReducerError
Source§fn clone(&self) -> TryReducerError
fn clone(&self) -> TryReducerError
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 TryReducerError
impl Debug for TryReducerError
Source§impl Display for TryReducerError
impl Display for TryReducerError
Source§impl Error for TryReducerError
impl Error for TryReducerError
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<'a, Acc, T, F, I: ?Sized> TryReducer<'a, Acc, T, BoolReducer, TryReducerError, Acc, I> for F
impl<'a, Acc, T, F, I: ?Sized> TryReducer<'a, Acc, T, BoolReducer, TryReducerError, Acc, I> for F
Source§impl<'a, Acc, T, F, I: ?Sized> TryReducer<'a, Acc, T, OptionReducer, TryReducerError, Acc, I> for F
impl<'a, Acc, T, F, I: ?Sized> TryReducer<'a, Acc, T, OptionReducer, TryReducerError, Acc, I> for F
impl Copy for TryReducerError
Auto Trait Implementations§
impl Freeze for TryReducerError
impl RefUnwindSafe for TryReducerError
impl Send for TryReducerError
impl Sync for TryReducerError
impl Unpin for TryReducerError
impl UnwindSafe for TryReducerError
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