pub struct Differentiable<F, DF>(pub F, pub DF);Expand description
Tuple struct to hold a one-variable function and its derivative.
Tuple Fields§
§0: F§1: DFImplementations§
Trait Implementations§
Source§impl<F: Clone, DF: Clone> Clone for Differentiable<F, DF>
impl<F: Clone, DF: Clone> Clone for Differentiable<F, DF>
Source§fn clone(&self) -> Differentiable<F, DF>
fn clone(&self) -> Differentiable<F, DF>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<F, DF> Freeze for Differentiable<F, DF>
impl<F, DF> RefUnwindSafe for Differentiable<F, DF>where
F: RefUnwindSafe,
DF: RefUnwindSafe,
impl<F, DF> Send for Differentiable<F, DF>
impl<F, DF> Sync for Differentiable<F, DF>
impl<F, DF> Unpin for Differentiable<F, DF>
impl<F, DF> UnwindSafe for Differentiable<F, DF>where
F: UnwindSafe,
DF: 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