pub struct ThreatView {
pub tile: Pos,
pub enemies: Vec<Pos>,
}Expand description
Those that could attack a tile in their next turn: an arrow from each to the tile, and a mark over each.
Fields§
§tile: PosThe tile they could attack.
enemies: Vec<Pos>The tiles they stand on, in the game’s order; never empty. They may lie outside the view.
Trait Implementations§
Source§impl Clone for ThreatView
impl Clone for ThreatView
Source§fn clone(&self) -> ThreatView
fn clone(&self) -> ThreatView
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 ThreatView
impl Debug for ThreatView
impl Eq for ThreatView
Source§impl PartialEq for ThreatView
impl PartialEq for ThreatView
impl StructuralPartialEq for ThreatView
Auto Trait Implementations§
impl Freeze for ThreatView
impl RefUnwindSafe for ThreatView
impl Send for ThreatView
impl Sync for ThreatView
impl Unpin for ThreatView
impl UnsafeUnpin for ThreatView
impl UnwindSafe for ThreatView
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