pub trait Newton1d:
Iterate
+ Copy
+ Debug {
// Required methods
fn could_be_zero(self) -> bool;
fn step(value: Self, slope: Self) -> GeopResult<(Self, f64)>;
fn settle(self, step: Self, lo: Self, hi: Self) -> Self;
}Expand description
A number newton_1d runs in: plain f64, or a scalar.
Required Methods§
Sourcefn could_be_zero(self) -> bool
fn could_be_zero(self) -> bool
Whether self, a function’s value, could be zero.
Sourcefn step(value: Self, slope: Self) -> GeopResult<(Self, f64)>
fn step(value: Self, slope: Self) -> GeopResult<(Self, f64)>
The Newton step value / slope and its size, or why there is none.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".