pub struct LabInterpreter { /* private fields */ }Expand description
Lab interpreter
Implementations§
Source§impl LabInterpreter
impl LabInterpreter
Sourcepub fn add_reference_range(&mut self, test_code: &str, range: ReferenceRange)
pub fn add_reference_range(&mut self, test_code: &str, range: ReferenceRange)
Register reference_range in the LabInterpreter collection.
Sourcepub fn get_reference_range(&self, test_code: &str) -> Option<&ReferenceRange>
pub fn get_reference_range(&self, test_code: &str) -> Option<&ReferenceRange>
Borrow reference_range by id, or None when absent.
Sourcepub fn abnormality_detector(&self) -> &AbnormalityDetector
pub fn abnormality_detector(&self) -> &AbnormalityDetector
Borrow the abnormality_detector component.
Sourcepub fn interpret_result(&self, result: &LabResult) -> ResultStatus
pub fn interpret_result(&self, result: &LabResult) -> ResultStatus
Interpret result against the reference ranges; returns a ResultStatus.
Auto Trait Implementations§
impl Freeze for LabInterpreter
impl RefUnwindSafe for LabInterpreter
impl Send for LabInterpreter
impl Sync for LabInterpreter
impl Unpin for LabInterpreter
impl UnsafeUnpin for LabInterpreter
impl UnwindSafe for LabInterpreter
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more