pub struct EncounterConstructionError {
kind: EncounterConstructionErrorKind,
}Expand description
Failures while turning an authored encounter into combat-ready data.
Fields§
§kind: EncounterConstructionErrorKindImplementations§
Source§impl EncounterConstructionError
impl EncounterConstructionError
pub(crate) fn resolved_enemy_count_mismatch( expected: usize, found: usize, ) -> Self
pub(crate) fn resolved_enemy_index_out_of_range( index: usize, source: TryFromIntError, ) -> Self
pub(crate) fn resolved_enemy_identity_mismatch( index: usize, authored: EnemyIdx, resolved: EnemyIdx, ) -> Self
pub(crate) fn resolved_enemy_level_mismatch( enemy: EnemyIdx, expected: u16, found: u16, ) -> Self
pub(crate) fn resolved_enemy_identity_metadata_mismatch(enemy: EnemyIdx) -> Self
pub(crate) fn resolved_enemy_metadata_mismatch(enemy: EnemyIdx) -> Self
pub(crate) fn resolved_health_model_mismatch( enemy: EnemyIdx, expected: f64, found: f64, ) -> Self
pub(crate) fn empty_resolved_display_name(enemy: EnemyIdx) -> Self
pub(crate) fn invalid_resolved_enemy_stat( enemy: EnemyIdx, field: &'static str, found: f64, ) -> Self
pub(crate) fn combat_creature_armor_mismatch( enemy: EnemyIdx, expected: f64, found: f64, ) -> Self
pub(crate) fn invalid_combat_armor_constant(enemy: EnemyIdx, found: f64) -> Self
pub(crate) fn invalid_combat_armor_constant_mod( enemy: EnemyIdx, found: f64, ) -> Self
pub(crate) fn combat_effective_armor_constant_mismatch( enemy: EnemyIdx, expected: f64, found: f64, armor_constant: f64, armor_constant_mod: f64, ) -> Self
Trait Implementations§
Source§impl Debug for EncounterConstructionError
impl Debug for EncounterConstructionError
Source§impl Display for EncounterConstructionError
impl Display for EncounterConstructionError
Source§impl Error for EncounterConstructionError
impl Error for EncounterConstructionError
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<EncounterConstructionError> for EngineError
impl From<EncounterConstructionError> for EngineError
Source§fn from(error: EncounterConstructionError) -> Self
fn from(error: EncounterConstructionError) -> Self
Converts to this type from the input type.
Source§impl From<EncounterConstructionError> for EngineErrorKind
impl From<EncounterConstructionError> for EngineErrorKind
Source§fn from(source: EncounterConstructionError) -> Self
fn from(source: EncounterConstructionError) -> Self
Converts to this type from the input type.
Source§impl From<EncounterValidationError> for EncounterConstructionError
impl From<EncounterValidationError> for EncounterConstructionError
Source§fn from(error: EncounterValidationError) -> Self
fn from(error: EncounterValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncounterConstructionError
impl RefUnwindSafe for EncounterConstructionError
impl Send for EncounterConstructionError
impl Sync for EncounterConstructionError
impl Unpin for EncounterConstructionError
impl UnsafeUnpin for EncounterConstructionError
impl UnwindSafe for EncounterConstructionError
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