pub struct FnNat2<F>(pub F);Expand description
Wrapper that adapts a Fn(u64, u64) -> R closure into a Nat2Callback.
Prefer reify_nat2_fn which uses this internally.
Tuple Fields§
§0: FTrait Implementations§
Auto Trait Implementations§
impl<F> Freeze for FnNat2<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnNat2<F>where
F: RefUnwindSafe,
impl<F> Send for FnNat2<F>where
F: Send,
impl<F> Sync for FnNat2<F>where
F: Sync,
impl<F> Unpin for FnNat2<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnNat2<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnNat2<F>where
F: 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