pub struct Observations { /* private fields */ }Implementations§
Source§impl Observations
Public API
impl Observations
Public API
pub fn new(observations_len: usize) -> Self
pub fn try_new(observations_len: usize) -> Result<Self>
pub fn add( &mut self, sample: Sample, timestamp: Option<Timestamp>, values: &[i64], ) -> Result<()>
pub fn is_empty(&self) -> bool
pub fn aggregated_samples_count(&self) -> usize
pub fn timestamped_samples_count(&self) -> usize
pub fn try_into_iter(self) -> Result<ObservationsIntoIter>
Trait Implementations§
Source§impl Default for Observations
impl Default for Observations
Source§fn default() -> Observations
fn default() -> Observations
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Observations
impl RefUnwindSafe for Observations
impl Send for Observations
impl !Sync for Observations
impl Unpin 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