#[non_exhaustive]pub struct Consideration {
pub label: &'static str,
pub curve: Curve,
pub input: Score,
}Expand description
A single weighted input: a raw signal run through a Curve.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.label: &'static strA short static label naming this signal; shown by Reasoner::explain.
Empty by default.
curve: CurveThe curve applied to the input.
input: ScoreThe raw input signal, normalized to a Score.
Implementations§
Source§impl Consideration
impl Consideration
Trait Implementations§
Source§impl Clone for Consideration
impl Clone for Consideration
Source§fn clone(&self) -> Consideration
fn clone(&self) -> Consideration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Consideration
Source§impl Debug for Consideration
impl Debug for Consideration
impl Eq for Consideration
Source§impl PartialEq for Consideration
impl PartialEq for Consideration
Source§fn eq(&self, other: &Consideration) -> bool
fn eq(&self, other: &Consideration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Consideration
Auto Trait Implementations§
impl Freeze for Consideration
impl RefUnwindSafe for Consideration
impl Send for Consideration
impl Sync for Consideration
impl Unpin for Consideration
impl UnsafeUnpin for Consideration
impl UnwindSafe for Consideration
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