pub struct TargetCounter {
pub counts: HashMap<TargetCounterKey, u32>,
}Fields§
§counts: HashMap<TargetCounterKey, u32>Implementations§
Source§impl TargetCounter
impl TargetCounter
pub fn is_empty(&self) -> bool
pub fn logical_counts(&self) -> HashMap<String, u32>
pub fn bump(&mut self, kind: TargetKind, mode: ContentMode, name: &str)
Trait Implementations§
Source§impl Debug for TargetCounter
impl Debug for TargetCounter
Source§impl Default for TargetCounter
impl Default for TargetCounter
Source§fn default() -> TargetCounter
fn default() -> TargetCounter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TargetCounter
impl RefUnwindSafe for TargetCounter
impl Send for TargetCounter
impl Sync for TargetCounter
impl Unpin for TargetCounter
impl UnsafeUnpin for TargetCounter
impl UnwindSafe for TargetCounter
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