FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BidiDictionary

    struct · ferroui-base · v0.5.0

    struct BidiDictionary<T1, T2>
    

    A simple bi-directional dictionary.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    clear_then_reset_if_too_large

    fn clear_then_reset_if_too_large(self: &mut Self)
    

    Source

    add

    fn add(self: &mut Self, key: T1, value: T2)
    

    Panics when the key or the value has been added already.

    Source

    try_get_value

    fn try_get_value(self: &Self, key: &T1) -> Option<&T2>
    

    Source

    try_get_key

    fn try_get_key(self: &Self, value: &T2) -> Option<&T1>
    

    Source

    contains_key

    fn contains_key(self: &Self, key: &T1) -> bool
    

    Source

    contains_value

    fn contains_value(self: &Self, value: &T2) -> bool
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.