#[non_exhaustive]pub struct Contribution {
pub label: &'static str,
pub input: Score,
pub output: Score,
}Expand description
One line of an explanation: a consideration’s label and the score it produced for the chosen action.
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 strThe consideration’s label (empty if it was unlabeled).
input: ScoreThe raw input signal.
output: ScoreThe score the curve produced for that input.
Trait Implementations§
Source§impl Clone for Contribution
impl Clone for Contribution
Source§fn clone(&self) -> Contribution
fn clone(&self) -> Contribution
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 Contribution
Source§impl Debug for Contribution
impl Debug for Contribution
impl Eq for Contribution
Source§impl PartialEq for Contribution
impl PartialEq for Contribution
Source§fn eq(&self, other: &Contribution) -> bool
fn eq(&self, other: &Contribution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Contribution
Auto Trait Implementations§
impl Freeze for Contribution
impl RefUnwindSafe for Contribution
impl Send for Contribution
impl Sync for Contribution
impl Unpin for Contribution
impl UnsafeUnpin for Contribution
impl UnwindSafe for Contribution
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