pub enum FrameOrResultGen<Frame, Result> {
Frame(Frame),
Result(Result),
}
Variants§
Implementations§
Source§impl<F, R> FrameOrResultGen<F, R>
impl<F, R> FrameOrResultGen<F, R>
pub fn map_frame<F2>(self, f: impl FnOnce(F) -> F2) -> FrameOrResultGen<F2, R>
pub fn map_result<R2>(self, f: impl FnOnce(R) -> R2) -> FrameOrResultGen<F, R2>
Auto Trait Implementations§
impl<Frame, Result> Freeze for FrameOrResultGen<Frame, Result>
impl<Frame, Result> RefUnwindSafe for FrameOrResultGen<Frame, Result>where
Frame: RefUnwindSafe,
Result: RefUnwindSafe,
impl<Frame, Result> Send for FrameOrResultGen<Frame, Result>
impl<Frame, Result> Sync for FrameOrResultGen<Frame, Result>
impl<Frame, Result> Unpin for FrameOrResultGen<Frame, Result>
impl<Frame, Result> UnwindSafe for FrameOrResultGen<Frame, Result>where
Frame: UnwindSafe,
Result: 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