pub struct SignalInput {
pub kind: SignalKind,
pub value: f64,
}Expand description
One normalized fitness signal feeding into aggregation.
Fields§
§kind: SignalKindSource category – controls weighting.
value: f64Score in [0.0, 1.0]. Out-of-range values are clamped before weighting.
Implementations§
Source§impl SignalInput
impl SignalInput
Sourcepub fn weight(&self, config: &AggregationConfig) -> f64
pub fn weight(&self, config: &AggregationConfig) -> f64
Weight this signal carries under the given aggregation config.
Trait Implementations§
Source§impl Clone for SignalInput
impl Clone for SignalInput
Source§fn clone(&self) -> SignalInput
fn clone(&self) -> SignalInput
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 SignalInput
impl Debug for SignalInput
Source§impl PartialEq for SignalInput
impl PartialEq for SignalInput
impl Copy for SignalInput
impl StructuralPartialEq for SignalInput
Auto Trait Implementations§
impl Freeze for SignalInput
impl RefUnwindSafe for SignalInput
impl Send for SignalInput
impl Sync for SignalInput
impl Unpin for SignalInput
impl UnsafeUnpin for SignalInput
impl UnwindSafe for SignalInput
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