enum EncounterConstructionErrorKind {
Show 14 variants
InvalidDefinition(EncounterValidationError),
ResolvedEnemyCountMismatch {
expected: usize,
found: usize,
},
ResolvedEnemyIndexOutOfRange {
index: usize,
source: TryFromIntError,
},
ResolvedEnemyIdentityMismatch {
index: usize,
authored: EnemyIdx,
resolved: EnemyIdx,
},
ResolvedEnemyLevelMismatch {
enemy: EnemyIdx,
expected: u16,
found: u16,
},
ResolvedEnemyIdentityMetadataMismatch {
enemy: EnemyIdx,
},
ResolvedEnemyMetadataMismatch {
enemy: EnemyIdx,
},
ResolvedHealthModelMismatch {
enemy: EnemyIdx,
expected: f64,
found: f64,
},
EmptyResolvedDisplayName {
enemy: EnemyIdx,
},
InvalidResolvedEnemyStat {
enemy: EnemyIdx,
field: &'static str,
found: f64,
},
CombatCreatureArmorMismatch {
enemy: EnemyIdx,
expected: f64,
found: f64,
},
InvalidCombatArmorConstant {
enemy: EnemyIdx,
found: f64,
},
InvalidCombatArmorConstantMod {
enemy: EnemyIdx,
found: f64,
},
CombatEffectiveArmorConstantMismatch {
enemy: EnemyIdx,
expected: f64,
found: f64,
armor_constant: f64,
armor_constant_mod: f64,
},
}Variants§
InvalidDefinition(EncounterValidationError)
ResolvedEnemyCountMismatch
ResolvedEnemyIndexOutOfRange
ResolvedEnemyIdentityMismatch
ResolvedEnemyLevelMismatch
ResolvedEnemyIdentityMetadataMismatch
ResolvedEnemyMetadataMismatch
ResolvedHealthModelMismatch
EmptyResolvedDisplayName
InvalidResolvedEnemyStat
CombatCreatureArmorMismatch
InvalidCombatArmorConstant
InvalidCombatArmorConstantMod
CombatEffectiveArmorConstantMismatch
Trait Implementations§
Source§impl Error for EncounterConstructionErrorKind
impl Error for EncounterConstructionErrorKind
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<EncounterValidationError> for EncounterConstructionErrorKind
impl From<EncounterValidationError> for EncounterConstructionErrorKind
Source§fn from(source: EncounterValidationError) -> Self
fn from(source: EncounterValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncounterConstructionErrorKind
impl RefUnwindSafe for EncounterConstructionErrorKind
impl Send for EncounterConstructionErrorKind
impl Sync for EncounterConstructionErrorKind
impl Unpin for EncounterConstructionErrorKind
impl UnsafeUnpin for EncounterConstructionErrorKind
impl UnwindSafe for EncounterConstructionErrorKind
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> SpecConfig for T
impl<T> SpecConfig for T
§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