BidiDictionary
struct · ferroui-base · v0.5.0
struct BidiDictionary<T1, T2>
A simple bi-directional dictionary.
Members
new
fn new() -> Self
clear_then_reset_if_too_large
fn clear_then_reset_if_too_large(self: &mut Self)
add
fn add(self: &mut Self, key: T1, value: T2)
Panics when the key or the value has been added already.
try_get_value
fn try_get_value(self: &Self, key: &T1) -> Option<&T2>
try_get_key
fn try_get_key(self: &Self, value: &T2) -> Option<&T1>
contains_key
fn contains_key(self: &Self, key: &T1) -> bool
contains_value
fn contains_value(self: &Self, value: &T2) -> bool
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.