pub enum AllErrs<C, D = ()> {
Ok(C),
Err(Vec<AppError<D>>),
}Expand description
Helper type to collect a IntoIter<Item = Result<T, AppError>>
into a Result<C, AppError> with all of the errors instead of the first.
Variants§
Trait Implementations§
Source§impl<C, U, D> Extend<Result<U, AppError<D>>> for AllErrs<C, D>where
C: Extend<U>,
impl<C, U, D> Extend<Result<U, AppError<D>>> for AllErrs<C, D>where
C: Extend<U>,
Source§fn extend<T: IntoIterator<Item = Result<U, AppError<D>>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Result<U, AppError<D>>>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<C, D> Try for AllErrs<C, D>
impl<C, D> Try for AllErrs<C, D>
Source§type Output = C
type Output = C
🔬This is a nightly-only experimental API. (
try_trait_v2)The type of the value produced by
? when not short-circuiting.Source§type Residual = AllErrsResidue<D>
type Residual = AllErrsResidue<D>
🔬This is a nightly-only experimental API. (
try_trait_v2)The type of the value passed to
FromResidual::from_residual
as part of ? when short-circuiting. Read moreSource§fn from_output(output: Self::Output) -> Self
fn from_output(output: Self::Output) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from its
Output type. Read moreSource§fn branch(self) -> ControlFlow<Self::Residual, Self::Output>
fn branch(self) -> ControlFlow<Self::Residual, Self::Output>
🔬This is a nightly-only experimental API. (
try_trait_v2)Used in
? to decide whether the operator should produce a value
(because this returned ControlFlow::Continue)
or propagate a value back to the caller
(because this returned ControlFlow::Break). Read moreAuto Trait Implementations§
impl<C, D> Freeze for AllErrs<C, D>where
C: Freeze,
impl<C, D> RefUnwindSafe for AllErrs<C, D>where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<C, D> Send for AllErrs<C, D>
impl<C, D> Sync for AllErrs<C, D>
impl<C, D> Unpin for AllErrs<C, D>where
C: Unpin,
impl<C, D> UnwindSafe for AllErrs<C, D>where
C: UnwindSafe,
D: RefUnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more