pub struct Solution<S, A, C> {
pub states: Vec<S>,
pub actions: Vec<A>,
pub cost: C,
}Expand description
A path from the start state to a goal state.
Fields§
§states: Vec<S>The states along the path, from the start to the goal. Never empty: a start state that already is a goal yields a single state.
actions: Vec<A>The edge labels along the path; actions[i] leads from states[i] to
states[i + 1]. Always one shorter than Solution::states.
cost: CThe sum of the edge costs along the path.
Implementations§
Source§impl<S, A, C> Solution<S, A, C>
impl<S, A, C> Solution<S, A, C>
Trait Implementations§
impl<S: Eq, A: Eq, C: Eq> Eq for Solution<S, A, C>
impl<S: PartialEq, A: PartialEq, C: PartialEq> StructuralPartialEq for Solution<S, A, C>
Auto Trait Implementations§
impl<S, A, C> Forget for Solution<S, A, C>
impl<S, A, C> Freeze for Solution<S, A, C>
impl<S, A, C> Move for Solution<S, A, C>
impl<S, A, C> RefUnwindSafe for Solution<S, A, C>
impl<S, A, C> Send for Solution<S, A, C>
impl<S, A, C> Sync for Solution<S, A, C>
impl<S, A, C> Unpin for Solution<S, A, C>
impl<S, A, C> UnsafeUnpin for Solution<S, A, C>
impl<S, A, C> UnwindSafe for Solution<S, A, C>
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