pub struct BlindHeuristic;Expand description
A blind heuristic that returns 0 at the goal and 1 otherwise.
This is the simplest admissible heuristic, equivalent to treating the search as uniform-cost with goal checking.
§Examples
use miniplan::heuristic::BlindHeuristic;
use miniplan::search::Heuristic;
assert_eq!(BlindHeuristic.name(), "blind");Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlindHeuristic
impl RefUnwindSafe for BlindHeuristic
impl Send for BlindHeuristic
impl Sync for BlindHeuristic
impl Unpin for BlindHeuristic
impl UnsafeUnpin for BlindHeuristic
impl UnwindSafe for BlindHeuristic
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
fn accept_mut(&self, v: &mut V) -> O
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