pub enum AbilityLookupError {
Missing {
hero: HeroId,
slot: LogicalSlot,
},
Ambiguous {
hero: HeroId,
slot: LogicalSlot,
candidates: Vec<AbilityRef>,
},
MissingVariant {
hero: HeroId,
slot: LogicalSlot,
variant: AbilityVariant,
},
}Expand description
Explicit failure for a logical-slot lookup.
Variants§
Trait Implementations§
Source§impl Clone for AbilityLookupError
impl Clone for AbilityLookupError
Source§fn clone(&self) -> AbilityLookupError
fn clone(&self) -> AbilityLookupError
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 AbilityLookupError
impl Debug for AbilityLookupError
Source§impl Display for AbilityLookupError
impl Display for AbilityLookupError
impl Eq for AbilityLookupError
Source§impl Error for AbilityLookupError
impl Error for AbilityLookupError
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 PartialEq for AbilityLookupError
impl PartialEq for AbilityLookupError
impl StructuralPartialEq for AbilityLookupError
Auto Trait Implementations§
impl Freeze for AbilityLookupError
impl RefUnwindSafe for AbilityLookupError
impl Send for AbilityLookupError
impl Sync for AbilityLookupError
impl Unpin for AbilityLookupError
impl UnsafeUnpin for AbilityLookupError
impl UnwindSafe for AbilityLookupError
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