pub struct Bracket {
pub lo: f64,
pub hi: f64,
pub low_probe: (f64, f64),
pub high_probe: (f64, f64),
}Expand description
Where a golden_section search ended: the bracket it narrowed to and
its two interior probes, each with the value of the function there.
Fields§
§lo: f64The bracket’s low end.
hi: f64The bracket’s high end.
low_probe: (f64, f64)The lower interior probe and the function’s value at it.
high_probe: (f64, f64)The upper interior probe and the function’s value at it.
Trait Implementations§
impl Copy for Bracket
impl StructuralPartialEq for Bracket
Auto Trait Implementations§
impl Freeze for Bracket
impl RefUnwindSafe for Bracket
impl Send for Bracket
impl Sync for Bracket
impl Unpin for Bracket
impl UnsafeUnpin for Bracket
impl UnwindSafe for Bracket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.