#[non_exhaustive]pub struct Strike {
pub expected: i64,
pub all_hit: i64,
pub struck_back: i64,
}Expand description
The game’s forecast of one threat’s strike on whoever stands on a tile. Expected values are in hundredths of a point: a hit chance in percent times the damage.
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.
all_hit: i64The damage if every strike hits, in points.
struck_back: i64The damage expected to be struck back at the threat, in hundredths.
Implementations§
Trait Implementations§
impl Copy for Strike
impl Eq for Strike
impl StructuralPartialEq for Strike
Auto Trait Implementations§
impl Freeze for Strike
impl RefUnwindSafe for Strike
impl Send for Strike
impl Sync for Strike
impl Unpin for Strike
impl UnsafeUnpin for Strike
impl UnwindSafe for Strike
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