pub struct ProcessScore {
pub block_violations: usize,
pub warn_violations: usize,
pub score: f64,
}Expand description
Outcome of scoring a Trace.
Fields§
§block_violations: usize§warn_violations: usize§score: f64In [0, 1]. Any block violation forces 0.0; each warn costs 0.1 (floored at 0).
Implementations§
Trait Implementations§
Source§impl Clone for ProcessScore
impl Clone for ProcessScore
Source§fn clone(&self) -> ProcessScore
fn clone(&self) -> ProcessScore
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 moreSource§impl Debug for ProcessScore
impl Debug for ProcessScore
Auto Trait Implementations§
impl Freeze for ProcessScore
impl RefUnwindSafe for ProcessScore
impl Send for ProcessScore
impl Sync for ProcessScore
impl Unpin for ProcessScore
impl UnsafeUnpin for ProcessScore
impl UnwindSafe for ProcessScore
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