pub(crate) struct Counter<K: PartialEq + Clone>(pub(crate) Vec<(K, u64)>);Expand description
A counter that remembers the order its keys arrived in, as Python’s does.
Tuple Fields§
§0: Vec<(K, u64)>Implementations§
Auto Trait Implementations§
impl<K> Freeze for Counter<K>
impl<K> RefUnwindSafe for Counter<K>where
K: RefUnwindSafe,
impl<K> Send for Counter<K>where
K: Send,
impl<K> Sync for Counter<K>where
K: Sync,
impl<K> Unpin for Counter<K>where
K: Unpin,
impl<K> UnwindSafe for Counter<K>where
K: UnwindSafe,
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