RefCountingSmallDictionary
struct · ferroui-base · v0.5.0
struct RefCountingSmallDictionary<TKey>
Counts the references to keys in an InlineDictionary.
Members
add
fn add(self: &mut Self, key: TKey) -> bool
Adds a reference to the key. Returns whether it is the first one.
remove
fn remove(self: &mut Self, key: &TKey) -> bool
Removes a reference to the key. Returns whether it was the last one.
Panics when the key has no reference.
get_enumerator
fn get_enumerator(self: &Self) -> InlineDictionaryEnumerator<'_, TKey, i32>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefaultIntoIterator
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.