pub trait ImplicitFunction<F> {
type Parameters<D: DualNum<F>>: DualStruct<D, F>;
type Variable<D>;
// Required method
fn residual<D: DualNum<F> + Copy>(
parameters: &Self::Parameters<D>,
x: Self::Variable<D>,
) -> Self::Variable<D>;
}
Expand description
An implicit function g(x, args) = 0 for which derivatives of x can be calculated with the ImplicitDerivative struct.
Required Associated Types§
Sourcetype Parameters<D: DualNum<F>>: DualStruct<D, F>
type Parameters<D: DualNum<F>>: DualStruct<D, F>
data type of the parameter struct, needs to implement DualStruct.
Required Methods§
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.