pub struct SingleValued<H>(pub H);Expand description
A single-valued Heuristic as a MvHeuristic with one estimate
per state, none for a dead end.
Admissible or consistent exactly when the wrapped heuristic is.
Tuple Fields§
§0: HTrait Implementations§
Source§impl<H: Clone> Clone for SingleValued<H>
impl<H: Clone> Clone for SingleValued<H>
impl<H: Copy> Copy for SingleValued<H>
Source§impl<H: Debug> Debug for SingleValued<H>
impl<H: Debug> Debug for SingleValued<H>
Source§impl<H: Default> Default for SingleValued<H>
impl<H: Default> Default for SingleValued<H>
impl<H: Eq> Eq for SingleValued<H>
Source§impl<S, V, H: Heuristic<S, V>> MvHeuristic<S, V> for SingleValued<H>
impl<S, V, H: Heuristic<S, V>> MvHeuristic<S, V> for SingleValued<H>
Source§impl<H: PartialEq> PartialEq for SingleValued<H>
impl<H: PartialEq> PartialEq for SingleValued<H>
impl<H: PartialEq> StructuralPartialEq for SingleValued<H>
Auto Trait Implementations§
impl<H> Forget for SingleValued<H>
impl<H> Freeze for SingleValued<H>where
H: Freeze,
impl<H> Move for SingleValued<H>
impl<H> RefUnwindSafe for SingleValued<H>where
H: RefUnwindSafe,
impl<H> Send for SingleValued<H>where
H: Send,
impl<H> Sync for SingleValued<H>where
H: Sync,
impl<H> Unpin for SingleValued<H>where
H: Unpin,
impl<H> UnsafeUnpin for SingleValued<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for SingleValued<H>where
H: 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