Struct abstutil::Counter [−][src]
Expand description
A counter per key
Fields
map: BTreeMap<T, usize>
sum: usize
Implementations
Trait Implementations
impl<'de, T: Ord + PartialEq + Clone> Deserialize<'de> for Counter<T> where
T: Deserialize<'de>,
impl<'de, T: Ord + PartialEq + Clone> Deserialize<'de> for Counter<T> where
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Counter<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Counter<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more