#[non_exhaustive]pub enum AttackError {
ZeroReach,
ZeroForce,
HorizontalSpanOverflow,
SurfaceOverflow,
ForceOverflow,
}Expand description
Invalid attack configuration or checked-arithmetic failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroReach
Attack reach was zero.
ZeroForce
Attack force was zero.
HorizontalSpanOverflow
Combined horizontal half widths overflowed.
SurfaceOverflow
Target facing-surface coordinate overflowed.
ForceOverflow
Centering or force conversion overflowed.
Trait Implementations§
Source§impl Clone for AttackError
impl Clone for AttackError
impl Copy for AttackError
Source§impl Debug for AttackError
impl Debug for AttackError
Source§impl Display for AttackError
impl Display for AttackError
impl Eq for AttackError
Source§impl Error for AttackError
impl Error for AttackError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Hash for AttackError
impl Hash for AttackError
Source§impl PartialEq for AttackError
impl PartialEq for AttackError
impl StructuralPartialEq for AttackError
Auto Trait Implementations§
impl Freeze for AttackError
impl RefUnwindSafe for AttackError
impl Send for AttackError
impl Sync for AttackError
impl Unpin for AttackError
impl UnsafeUnpin for AttackError
impl UnwindSafe for AttackError
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