pub enum CollResult<T, I, F> {
Ok(T, I),
Fatal(F),
}Variants§
Implementations§
Source§impl<T, I, F> CollResult<T, I, F>
impl<T, I, F> CollResult<T, I, F>
pub fn norm(self) -> Result<T, I, F>
pub fn and<OT, OI>( self, f: impl FnOnce(T, I) -> CollResult<OT, OI, F>, ) -> CollResult<OT, OI, F>
pub fn map<O>(self, f: impl FnOnce(T) -> O) -> CollResult<O, I, F>
Trait Implementations§
impl<T: Eq, I: Eq, F: Eq> Eq for CollResult<T, I, F>
impl<T, I, F> StructuralPartialEq for CollResult<T, I, F>
Auto Trait Implementations§
impl<T, I, F> Freeze for CollResult<T, I, F>
impl<T, I, F> RefUnwindSafe for CollResult<T, I, F>
impl<T, I, F> Send for CollResult<T, I, F>
impl<T, I, F> Sync for CollResult<T, I, F>
impl<T, I, F> Unpin for CollResult<T, I, F>
impl<T, I, F> UnwindSafe for CollResult<T, I, F>
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