pub struct GameDataError {
kind: GameDataErrorKind,
}Expand description
A required resolved game-data coordinate was absent.
Fields§
§kind: GameDataErrorKindImplementations§
Source§impl GameDataError
impl GameDataError
pub(crate) const fn missing_spell_field( spell_id: SpellIdx, field: &'static str, ) -> Self
pub(crate) const fn missing_effect_field( spell_id: SpellIdx, effect_index: u8, field: &'static str, ) -> Self
pub(crate) const fn invalid_empower_timings(spell_id: SpellIdx) -> Self
pub(crate) const fn missing_empower_rank(spell_id: SpellIdx, rank: u8) -> Self
pub(crate) const fn invalid_empower_rank_count(spell_id: SpellIdx) -> Self
Trait Implementations§
Source§impl Debug for GameDataError
impl Debug for GameDataError
Source§impl Display for GameDataError
impl Display for GameDataError
Source§impl Error for GameDataError
impl Error for GameDataError
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()
Auto Trait Implementations§
impl Freeze for GameDataError
impl RefUnwindSafe for GameDataError
impl Send for GameDataError
impl Sync for GameDataError
impl Unpin for GameDataError
impl UnsafeUnpin for GameDataError
impl UnwindSafe for GameDataError
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
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more