pub struct RatingCheck {
pub check: &'static str,
pub signal: String,
pub motor: Option<usize>,
pub limit: f64,
pub life: bool,
}Expand description
A rating of one of the machine’s own parts that the cycle is judged against (Machine::rating_checks), beside the
checks every machine gets from its motors, drives, gearbox, guides and belts. The analysis follows the signal signal
(one of signal_infos, among the base signals) over the measured pass.
Fields§
§check: &'static strThe verdict’s id; its label is the translation key check-<check>.
signal: String§motor: Option<usize>§limit: f64§life: boolfalse: the highest |signal| over the pass has to stay at or below limit. true: the signal is a damage
rate, the share of the part’s life used per hour, and the life in hours, 1 / its mean over the pass (Palmgren
and Miner), has to reach limit; such a check’s id ends in “-life” and is one of analysis::AT_LEAST.
Trait Implementations§
Source§impl Clone for RatingCheck
impl Clone for RatingCheck
Source§fn clone(&self) -> RatingCheck
fn clone(&self) -> RatingCheck
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 RatingCheck
impl Debug for RatingCheck
Source§impl PartialEq for RatingCheck
impl PartialEq for RatingCheck
Source§fn eq(&self, other: &RatingCheck) -> bool
fn eq(&self, other: &RatingCheck) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RatingCheck
Auto Trait Implementations§
impl Freeze for RatingCheck
impl RefUnwindSafe for RatingCheck
impl Send for RatingCheck
impl Sync for RatingCheck
impl Unpin for RatingCheck
impl UnsafeUnpin for RatingCheck
impl UnwindSafe for RatingCheck
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