pub struct SasProblem<'a> { /* private fields */ }Expand description
A Task viewed as a WidthProblem: one feature per fact var = value,
and the number of unsatisfied goal facts as #g.
Implementations§
Trait Implementations§
Source§impl GoalCount for SasProblem<'_>
impl GoalCount for SasProblem<'_>
Source§fn unsatisfied_goals(&self, state: &State) -> usize
fn unsatisfied_goals(&self, state: &State) -> usize
Number of goal conditions not yet satisfied (
#g).Source§impl WidthProblem for SasProblem<'_>
impl WidthProblem for SasProblem<'_>
Source§fn initial_state(&self) -> State
fn initial_state(&self) -> State
The state the search starts from.
Source§fn successors(&self, state: &State, out: &mut Vec<(OpId, State)>)
fn successors(&self, state: &State, out: &mut Vec<(OpId, State)>)
Push all
(action, successor) pairs of state into out.Source§fn features(&self, state: &State, out: &mut Vec<u32>)
fn features(&self, state: &State, out: &mut Vec<u32>)
Push the feature ids (
< num_features()) true in state into out.Source§fn num_features(&self) -> usize
fn num_features(&self) -> usize
Number of distinct features; every id from
WidthProblem::features
must be below it.Auto Trait Implementations§
impl<'a> Forget for SasProblem<'a>
impl<'a> Freeze for SasProblem<'a>
impl<'a> Move for SasProblem<'a>
impl<'a> RefUnwindSafe for SasProblem<'a>
impl<'a> Send for SasProblem<'a>
impl<'a> Sync for SasProblem<'a>
impl<'a> Unpin for SasProblem<'a>
impl<'a> UnsafeUnpin for SasProblem<'a>
impl<'a> UnwindSafe for SasProblem<'a>
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