pub struct Decision<A> {
pub action: A,
pub plan: Vec<A>,
pub cost: f64,
pub evaluations: u64,
}Expand description
One decision of the planner.
Fields§
§action: AThe action to execute now: the first of the best sequence.
plan: Vec<A>The whole best sequence.
cost: f64Its estimated (discounted) cost.
evaluations: u64Sequence evaluations spent on this decision.
Trait Implementations§
impl<A: PartialEq> StructuralPartialEq for Decision<A>
Auto Trait Implementations§
impl<A> Forget for Decision<A>
impl<A> Freeze for Decision<A>
impl<A> Move for Decision<A>
impl<A> RefUnwindSafe for Decision<A>
impl<A> Send for Decision<A>
impl<A> Sync for Decision<A>
impl<A> Unpin for Decision<A>
impl<A> UnsafeUnpin for Decision<A>
impl<A> UnwindSafe for Decision<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