#[non_exhaustive]pub struct TacticsOrder<H> {
pub hooks: H,
pub cap: usize,
}Expand description
A planner’s candidate order for grid games, in eight steps (the
module’s docs): every piece’s best strike, the game’s pick, its extras,
each piece’s advance and hold, the other strikes, the rest, and the end
of the turn within cap.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hooks: HWhat the order asks the game.
cap: usizeThe most commands it lists; 0 counts as 1. The planner’s
candidates.
Implementations§
Trait Implementations§
Source§impl<H: Clone> Clone for TacticsOrder<H>
impl<H: Clone> Clone for TacticsOrder<H>
Source§fn clone(&self) -> TacticsOrder<H>
fn clone(&self) -> TacticsOrder<H>
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<H: Debug> Debug for TacticsOrder<H>
impl<H: Debug> Debug for TacticsOrder<H>
impl<H: Eq> Eq for TacticsOrder<H>
Source§impl<R, H> Order<R> for TacticsOrder<H>
impl<R, H> Order<R> for TacticsOrder<H>
Source§impl<H: PartialEq> PartialEq for TacticsOrder<H>
impl<H: PartialEq> PartialEq for TacticsOrder<H>
impl<H: PartialEq> StructuralPartialEq for TacticsOrder<H>
Auto Trait Implementations§
impl<H> Freeze for TacticsOrder<H>where
H: Freeze,
impl<H> RefUnwindSafe for TacticsOrder<H>where
H: RefUnwindSafe,
impl<H> Send for TacticsOrder<H>where
H: Send,
impl<H> Sync for TacticsOrder<H>where
H: Sync,
impl<H> Unpin for TacticsOrder<H>where
H: Unpin,
impl<H> UnsafeUnpin for TacticsOrder<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for TacticsOrder<H>where
H: UnwindSafe,
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