pub struct RateSet {
pub control: Expr,
pub internal: Vec<Expr>,
pub rate_cache: SmallVec<[f32; 8]>,
pub last_update_index: usize,
pub has_updated: bool,
}Fields§
§control: Expr§internal: Vec<Expr>§rate_cache: SmallVec<[f32; 8]>§last_update_index: usize§has_updated: boolImplementations§
Source§impl RateSet
impl RateSet
pub fn new(control: impl Into<Expr>) -> Self
pub fn calculate_rates( &mut self, generation: usize, metrics: &MetricSet, ) -> RadiateResult<&[f32]>
pub fn calculate_control_rate( &mut self, generation: usize, metrics: &MetricSet, ) -> RadiateResult<f32>
pub fn rates(&self) -> &[f32]
pub fn alias(self, name: impl Into<SmallStr>) -> Self
pub fn push(self, expr: impl Into<Expr>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateSet
impl RefUnwindSafe for RateSet
impl Send for RateSet
impl Sync for RateSet
impl Unpin for RateSet
impl UnsafeUnpin for RateSet
impl UnwindSafe for RateSet
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