pub struct OutputValue {
pub output: String,
pub value: Option<f64>,
pub sets: Vec<SetScore>,
}Expand description
An output’s crisp value: the centroid of its sets, each clipped at the score its rules give it.
Fields§
§output: String§value: Option<f64>None when no rule concluding it scored above zero, so there is no shape to take a centre of.
sets: Vec<SetScore>Every set, in order along the output’s range.
Implementations§
Source§impl OutputValue
impl OutputValue
Trait Implementations§
Source§impl Clone for OutputValue
impl Clone for OutputValue
Source§impl Debug for OutputValue
impl Debug for OutputValue
Source§impl PartialEq for OutputValue
impl PartialEq for OutputValue
Source§impl Serialize for OutputValue
impl Serialize for OutputValue
impl StructuralPartialEq for OutputValue
Auto Trait Implementations§
impl Freeze for OutputValue
impl RefUnwindSafe for OutputValue
impl Send for OutputValue
impl Sync for OutputValue
impl Unpin for OutputValue
impl UnsafeUnpin for OutputValue
impl UnwindSafe for OutputValue
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