pub enum GameplayQueryError {
MissingHero {
hero: HeroId,
},
MissingAbility {
reference: AbilityRef,
},
MissingSlot {
hero: HeroId,
slot: LogicalSlot,
},
AmbiguousSlot {
hero: HeroId,
slot: LogicalSlot,
candidates: Vec<AbilityRef>,
},
MissingVariant {
hero: HeroId,
slot: LogicalSlot,
variant: AbilityVariant,
},
MissingStat {
owner: StatOwner,
stat: StatKey,
},
WrongStatType {
owner: StatOwner,
stat: StatKey,
expected: &'static str,
},
}Variants§
MissingHero
MissingAbility
Fields
§
reference: AbilityRefMissingSlot
AmbiguousSlot
MissingVariant
MissingStat
WrongStatType
Trait Implementations§
Source§impl Clone for GameplayQueryError
impl Clone for GameplayQueryError
Source§fn clone(&self) -> GameplayQueryError
fn clone(&self) -> GameplayQueryError
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 GameplayQueryError
impl Debug for GameplayQueryError
Source§impl Display for GameplayQueryError
impl Display for GameplayQueryError
impl Eq for GameplayQueryError
Source§impl Error for GameplayQueryError
impl Error for GameplayQueryError
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 GameplayQueryError
impl PartialEq for GameplayQueryError
impl StructuralPartialEq for GameplayQueryError
Auto Trait Implementations§
impl Freeze for GameplayQueryError
impl RefUnwindSafe for GameplayQueryError
impl Send for GameplayQueryError
impl Sync for GameplayQueryError
impl Unpin for GameplayQueryError
impl UnsafeUnpin for GameplayQueryError
impl UnwindSafe for GameplayQueryError
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