pub struct StatModifier {
pub source: String,
pub stat: StatKind,
pub value: f32,
pub kind: ModifierKind,
}Fields§
§source: String§stat: StatKind§value: f32§kind: ModifierKindImplementations§
Source§impl StatModifier
impl StatModifier
pub fn flat(source: impl Into<String>, stat: StatKind, value: f32) -> Self
pub fn percent(source: impl Into<String>, stat: StatKind, value: f32) -> Self
pub fn mult(source: impl Into<String>, stat: StatKind, value: f32) -> Self
pub fn override_val( source: impl Into<String>, stat: StatKind, value: f32, ) -> Self
Trait Implementations§
Source§impl Clone for StatModifier
impl Clone for StatModifier
Source§fn clone(&self) -> StatModifier
fn clone(&self) -> StatModifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StatModifier
impl RefUnwindSafe for StatModifier
impl Send for StatModifier
impl Sync for StatModifier
impl Unpin for StatModifier
impl UnsafeUnpin for StatModifier
impl UnwindSafe for StatModifier
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