pub struct EAccumScope<'a> { /* private fields */ }Expand description
Error scope to fail if one of several computations failed.
Usage example:
for e in &es {
foo(acc, e)?;
}will only try to execute foo until it reaches the first error.
Subsequent elements will not be handled.
If instead we wish to execute them all we can do
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EAccumScope<'a>
impl<'a> RefUnwindSafe for EAccumScope<'a>
impl<'a> !Send for EAccumScope<'a>
impl<'a> !Sync for EAccumScope<'a>
impl<'a> Unpin for EAccumScope<'a>
impl<'a> !UnwindSafe for EAccumScope<'a>
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