pub struct EmptyCache<T> { /* private fields */ }
Expand description
Dummy implementation of Cache with no information stored at all.
Implementations§
Source§impl<T> EmptyCache<T>
impl<T> EmptyCache<T>
Trait Implementations§
Source§impl<T> Cache for EmptyCache<T>
impl<T> Cache for EmptyCache<T>
type State = T
Source§fn initialize(&mut self, _: &dyn Problem<State = Self::State>)
fn initialize(&mut self, _: &dyn Problem<State = Self::State>)
Prepare the cache to be used with the given problem
Source§fn get_threshold(&self, _: &T, _: usize) -> Option<Threshold>
fn get_threshold(&self, _: &T, _: usize) -> Option<Threshold>
Returns the threshold currently associated with the given state, if any.
Source§fn update_threshold(&self, _: Arc<T>, _: usize, _: isize, _: bool)
fn update_threshold(&self, _: Arc<T>, _: usize, _: isize, _: bool)
Updates the threshold associated with the given state, only if it is increased.
Source§fn clear_layer(&self, _: usize)
fn clear_layer(&self, _: usize)
Removes all thresholds associated with states at the given depth.
Source§fn must_explore(&self, _: &SubProblem<Self::State>) -> bool
fn must_explore(&self, _: &SubProblem<Self::State>) -> bool
Returns true if the subproblem still must be explored,
given the thresholds contained in the cache.
Source§impl<T: Clone> Clone for EmptyCache<T>
impl<T: Clone> Clone for EmptyCache<T>
Source§fn clone(&self) -> EmptyCache<T>
fn clone(&self) -> EmptyCache<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for EmptyCache<T>
impl<T: Debug> Debug for EmptyCache<T>
Source§impl<T> Default for EmptyCache<T>
impl<T> Default for EmptyCache<T>
impl<T: Copy> Copy for EmptyCache<T>
Auto Trait Implementations§
impl<T> Freeze for EmptyCache<T>
impl<T> RefUnwindSafe for EmptyCache<T>where
T: RefUnwindSafe,
impl<T> Send for EmptyCache<T>where
T: Send,
impl<T> Sync for EmptyCache<T>where
T: Sync,
impl<T> Unpin for EmptyCache<T>where
T: Unpin,
impl<T> UnwindSafe for EmptyCache<T>where
T: UnwindSafe,
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