pub struct FingererAggregate {
pub flat_fps: f64,
pub add_percent: f64,
pub mul_factor: f64,
}Expand description
Pre-computed sum/product of every effect across every modifier on a fingerer. Read on every FPS calc — the tick path rebuilds this when modifiers are added, removed, or expire, so reads are O(1).
Default is the identity: zero flat, zero add-percent, x1 multiplier.
This is the value reads see when no modifiers are attached.
Fields§
§flat_fps: f64§add_percent: f64§mul_factor: f64Implementations§
Trait Implementations§
Source§impl Clone for FingererAggregate
impl Clone for FingererAggregate
Source§fn clone(&self) -> FingererAggregate
fn clone(&self) -> FingererAggregate
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 moreSource§impl Debug for FingererAggregate
impl Debug for FingererAggregate
Source§impl Default for FingererAggregate
impl Default for FingererAggregate
Source§impl PartialEq for FingererAggregate
impl PartialEq for FingererAggregate
impl Copy for FingererAggregate
impl StructuralPartialEq for FingererAggregate
Auto Trait Implementations§
impl Freeze for FingererAggregate
impl RefUnwindSafe for FingererAggregate
impl Send for FingererAggregate
impl Sync for FingererAggregate
impl Unpin for FingererAggregate
impl UnsafeUnpin for FingererAggregate
impl UnwindSafe for FingererAggregate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more