pub trait CurveWithDerivative<T>: Sized + SampleDerivative<T>where
T: HasTangent,{
// Required method
fn with_derivative(self) -> SampleDerivativeWrapper<Self>;
}
Expand description
Trait for curves that have a well-defined notion of derivative, allowing for derivatives to be extracted along with values.
This is implemented by implementing SampleDerivative
.
Required Methods§
Sourcefn with_derivative(self) -> SampleDerivativeWrapper<Self>
fn with_derivative(self) -> SampleDerivativeWrapper<Self>
This curve, but with its first derivative included in sampling.
Notably, the output type is a Curve<WithDerivative<T>>
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.