pub struct FormulaTesterConfig {
pub caster_stats: HashMap<String, f32>,
pub target_armor: f32,
pub target_fire_resist: f32,
pub target_cold_resist: f32,
pub target_lightning_resist: f32,
pub target_poison_resist: f32,
pub target_arcane_resist: f32,
pub target_health_pct: f32,
pub target_status_effects: HashSet<StatusEffectType>,
pub caster_status_effects: HashSet<StatusEffectType>,
pub combo_points: u32,
pub sample_count: u32,
}Fields§
§caster_stats: HashMap<String, f32>§target_armor: f32§target_fire_resist: f32§target_cold_resist: f32§target_lightning_resist: f32§target_poison_resist: f32§target_arcane_resist: f32§target_health_pct: f32§target_status_effects: HashSet<StatusEffectType>§caster_status_effects: HashSet<StatusEffectType>§combo_points: u32§sample_count: u32Implementations§
Source§impl FormulaTesterConfig
impl FormulaTesterConfig
pub fn default_lvl_20() -> Self
pub fn resist_for_element(&self, element: DamageElement) -> f32
Trait Implementations§
Source§impl Clone for FormulaTesterConfig
impl Clone for FormulaTesterConfig
Auto Trait Implementations§
impl Freeze for FormulaTesterConfig
impl RefUnwindSafe for FormulaTesterConfig
impl Send for FormulaTesterConfig
impl Sync for FormulaTesterConfig
impl Unpin for FormulaTesterConfig
impl UnsafeUnpin for FormulaTesterConfig
impl UnwindSafe for FormulaTesterConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.