pub struct Threat<P> {
pub piece: P,
pub area: TileSet,
}Expand description
One piece that threatens tiles: the game’s id for it and the tiles it can strike next turn.
Fields§
§piece: PThe game’s id of the piece.
area: TileSetThe tiles it can strike (strike_area, strike_area_from, or
the game’s own).
Implementations§
Trait Implementations§
impl<P: Eq> Eq for Threat<P>
Source§impl<P> FromIterator<Threat<P>> for Threats<P>
impl<P> FromIterator<Threat<P>> for Threats<P>
impl<P: PartialEq> StructuralPartialEq for Threat<P>
Auto Trait Implementations§
impl<P> Freeze for Threat<P>where
P: Freeze,
impl<P> RefUnwindSafe for Threat<P>where
P: RefUnwindSafe,
impl<P> Send for Threat<P>where
P: Send,
impl<P> Sync for Threat<P>where
P: Sync,
impl<P> Unpin for Threat<P>where
P: Unpin,
impl<P> UnsafeUnpin for Threat<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Threat<P>where
P: 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