pub struct Func<F: Fn(&[f64]) -> f64>(pub F);
Expand description
New-type to support optimization of arbitrary functions without requiring to implement a trait.
Tuple Fields§
§0: F
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Func<F>where
F: Freeze,
impl<F> RefUnwindSafe for Func<F>where
F: RefUnwindSafe,
impl<F> Send for Func<F>where
F: Send,
impl<F> Sync for Func<F>where
F: Sync,
impl<F> Unpin for Func<F>where
F: Unpin,
impl<F> UnwindSafe for Func<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