pub struct Observation { /* private fields */ }Implementations§
Source§impl Observation
impl Observation
pub fn new( id: IdentificationValue, observation: NumericalValue, observed_effect: NumericalValue, ) -> Self
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
Returns a duplicate of the value. Read more
1.0.0 · 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 Observation
impl Debug for Observation
Source§impl Display for Observation
impl Display for Observation
Source§impl Identifiable for Observation
impl Identifiable for Observation
fn id(&self) -> IdentificationValue
Source§impl Observable for Observation
impl Observable for Observation
fn observation(&self) -> NumericalValue
fn observed_effect(&self) -> NumericalValue
Source§fn effect_observed(
&self,
target_threshold: NumericalValue,
target_effect: NumericalValue,
) -> bool
fn effect_observed( &self, target_threshold: NumericalValue, target_effect: NumericalValue, ) -> bool
Checks if the observed effect meets the target threshold and effect. Read more
Source§impl PartialEq for Observation
impl PartialEq for Observation
Source§impl PartialOrd for Observation
impl PartialOrd for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnwindSafe for Observation
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