pub struct MetaModulator;Expand description
Data structure representing meta modulator.
Implementations§
Source§impl MetaModulator
impl MetaModulator
Sourcepub fn apply(
&self,
fp: &FixedPointResult,
biases: BTreeMap<String, f64>,
constraints: BTreeMap<String, f64>,
) -> (BTreeMap<String, f64>, BTreeMap<String, f64>)
pub fn apply( &self, fp: &FixedPointResult, biases: BTreeMap<String, f64>, constraints: BTreeMap<String, f64>, ) -> (BTreeMap<String, f64>, BTreeMap<String, f64>)
Performs apply for this type.
Sourcepub fn apply_scaled(
&self,
fp: &FixedPointResult,
gain: f64,
biases: BTreeMap<String, f64>,
constraints: BTreeMap<String, f64>,
) -> (BTreeMap<String, f64>, BTreeMap<String, f64>)
pub fn apply_scaled( &self, fp: &FixedPointResult, gain: f64, biases: BTreeMap<String, f64>, constraints: BTreeMap<String, f64>, ) -> (BTreeMap<String, f64>, BTreeMap<String, f64>)
Performs apply scaled for this type.
Sourcepub fn apply_to_effect(
&self,
fp: &FixedPointResult,
effect: &RuleEffect,
) -> RuleEffect
pub fn apply_to_effect( &self, fp: &FixedPointResult, effect: &RuleEffect, ) -> RuleEffect
Soft-merge fixed-point deltas into a RuleEffect, then sanitize. Deltas are intentionally small so L1 patches remain the primary policy writer.
Sourcepub fn apply_to_effect_scaled(
&self,
fp: &FixedPointResult,
gain: f64,
effect: &RuleEffect,
) -> RuleEffect
pub fn apply_to_effect_scaled( &self, fp: &FixedPointResult, gain: f64, effect: &RuleEffect, ) -> RuleEffect
Performs apply to effect scaled for this type.
Auto Trait Implementations§
impl Forget for MetaModulator
impl Freeze for MetaModulator
impl Move for MetaModulator
impl RefUnwindSafe for MetaModulator
impl Send for MetaModulator
impl Sync for MetaModulator
impl Unpin for MetaModulator
impl UnsafeUnpin for MetaModulator
impl UnwindSafe for MetaModulator
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