pub struct CacheEntry { /* private fields */ }Expand description
What the search knows about one subproblem.
error is the best error found so far, an upper bound on the optimum;
lower_bound is a proven lower bound. The two meet when the subproblem is
solved.
Implementations§
Source§impl CacheEntry
impl CacheEntry
Sourcepub fn upper_bound(&self) -> f64
pub fn upper_bound(&self) -> f64
Upper bound the subproblem was last solved under.
Sourcepub fn lower_bound(&self) -> f64
pub fn lower_bound(&self) -> f64
Proven lower bound on the error.
Sourcepub fn leaf_error(&self) -> f64
pub fn leaf_error(&self) -> f64
Error of the subproblem as a leaf.
Sourcepub fn is_optimal(&self) -> bool
pub fn is_optimal(&self) -> bool
Whether the subproblem is solved.
pub fn has_valid_test(&self) -> bool
pub fn has_finite_error(&self) -> bool
pub fn has_finite_upper_bound(&self) -> bool
pub fn has_finite_leaf_error(&self) -> bool
Trait Implementations§
Source§impl Clone for CacheEntry
impl Clone for CacheEntry
Source§fn clone(&self) -> CacheEntry
fn clone(&self) -> CacheEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CacheEntry
Source§impl Debug for CacheEntry
impl Debug for CacheEntry
Auto Trait Implementations§
impl Freeze for CacheEntry
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnsafeUnpin for CacheEntry
impl UnwindSafe for CacheEntry
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