pub enum MonsterAttackError {
InvalidId(InvalidId),
MapAccess(AccessError),
}Variants§
InvalidId(InvalidId)
MapAccess(AccessError)
Trait Implementations§
Source§impl Debug for MonsterAttackError
impl Debug for MonsterAttackError
Source§impl Display for MonsterAttackError
impl Display for MonsterAttackError
Source§impl Error for MonsterAttackError
impl Error for MonsterAttackError
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 From<AccessError> for MonsterAttackError
impl From<AccessError> for MonsterAttackError
Source§fn from(source: AccessError) -> Self
fn from(source: AccessError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidId> for MonsterAttackError
impl From<InvalidId> for MonsterAttackError
Source§impl From<MonsterAttackError> for ApplyError
impl From<MonsterAttackError> for ApplyError
Source§fn from(source: MonsterAttackError) -> Self
fn from(source: MonsterAttackError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MonsterAttackError
impl RefUnwindSafe for MonsterAttackError
impl Send for MonsterAttackError
impl Sync for MonsterAttackError
impl Unpin for MonsterAttackError
impl UnsafeUnpin for MonsterAttackError
impl UnwindSafe for MonsterAttackError
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