pub struct LabeledCounts {
pub entries: Vec<LabeledCountEntry>,
}Fields§
§entries: Vec<LabeledCountEntry>Implementations§
Source§impl LabeledCounts
impl LabeledCounts
pub fn increment<I>(&mut self, labels: I)where
I: IntoIterator<Item = StatLabel>,
pub fn count_matching(&self, required_labels: &[StatLabel]) -> u32
pub fn count_exact(&self, labels: &[StatLabel]) -> u32
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for LabeledCounts
impl Clone for LabeledCounts
Source§fn clone(&self) -> LabeledCounts
fn clone(&self) -> LabeledCounts
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 LabeledCounts
impl Debug for LabeledCounts
Source§impl Default for LabeledCounts
impl Default for LabeledCounts
Source§fn default() -> LabeledCounts
fn default() -> LabeledCounts
Returns the “default value” for a type. Read more
Source§impl PartialEq for LabeledCounts
impl PartialEq for LabeledCounts
Source§impl Serialize for LabeledCounts
impl Serialize for LabeledCounts
impl Eq for LabeledCounts
impl StructuralPartialEq for LabeledCounts
Auto Trait Implementations§
impl Freeze for LabeledCounts
impl RefUnwindSafe for LabeledCounts
impl Send for LabeledCounts
impl Sync for LabeledCounts
impl Unpin for LabeledCounts
impl UnsafeUnpin for LabeledCounts
impl UnwindSafe for LabeledCounts
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