pub struct Observations(/* private fields */);Expand description
The observations available when criteria are evaluated.
A vector is used intentionally so the public representation serializes cleanly in JSON, TOML, YAML, and other formats without special map-key rules.
Implementations§
Source§impl Observations
impl Observations
pub fn new() -> Self
pub fn insert(&mut self, observation: Observation) -> Option<Observation>
pub fn with(self, observation: Observation) -> Self
pub fn get(&self, reference: &ObservationRef) -> Option<&Measurement>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &Observation>
Trait Implementations§
Source§impl Clone for Observations
impl Clone for Observations
Source§impl Debug for Observations
impl Debug for Observations
Source§impl Default for Observations
impl Default for Observations
Source§impl PartialEq for Observations
impl PartialEq for Observations
impl StructuralPartialEq for Observations
Auto Trait Implementations§
impl Freeze for Observations
impl RefUnwindSafe for Observations
impl Send for Observations
impl Sync for Observations
impl Unpin for Observations
impl UnsafeUnpin for Observations
impl UnwindSafe for Observations
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