pub struct AttackPlan { /* private fields */ }Expand description
Immutable output of one deterministic planning cycle.
Implementations§
Source§impl AttackPlan
impl AttackPlan
Sourcepub fn context(&self) -> PlanningContext
pub fn context(&self) -> PlanningContext
Returns the context used to score and constrain candidates.
Sourcepub fn total_cost(&self) -> u64
pub fn total_cost(&self) -> u64
Returns the sum of selected action costs.
Sourcepub fn steps(&self) -> &[PlanStep]
pub fn steps(&self) -> &[PlanStep]
Returns selected actions in dependency-safe execution order.
Sourcepub fn excluded(&self) -> &[ExcludedAction]
pub fn excluded(&self) -> &[ExcludedAction]
Returns omitted actions in stable action-ID order.
Trait Implementations§
Source§impl Clone for AttackPlan
impl Clone for AttackPlan
Source§fn clone(&self) -> AttackPlan
fn clone(&self) -> AttackPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttackPlan
impl Debug for AttackPlan
impl Eq for AttackPlan
Source§impl PartialEq for AttackPlan
impl PartialEq for AttackPlan
Source§impl Serialize for AttackPlan
impl Serialize for AttackPlan
impl StructuralPartialEq for AttackPlan
Auto Trait Implementations§
impl Freeze for AttackPlan
impl RefUnwindSafe for AttackPlan
impl Send for AttackPlan
impl Sync for AttackPlan
impl Unpin for AttackPlan
impl UnsafeUnpin for AttackPlan
impl UnwindSafe for AttackPlan
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more