#[non_exhaustive]pub struct Danger {
pub expected: i64,
pub worst: i64,
pub struck_back: i64,
pub threats: u32,
}Expand description
The danger at one tile: Threats::danger’s sums of the Strikes
of every threat that reaches it.
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.expected: i64The damage expected, in hundredths.
worst: i64The damage if every strike of every threat hits, in points.
struck_back: i64The damage expected to be struck back, in hundredths.
threats: u32How many threats were added up.
Trait Implementations§
impl Copy for Danger
impl Eq for Danger
impl StructuralPartialEq for Danger
Auto Trait Implementations§
impl Freeze for Danger
impl RefUnwindSafe for Danger
impl Send for Danger
impl Sync for Danger
impl Unpin for Danger
impl UnsafeUnpin for Danger
impl UnwindSafe for Danger
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