FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RefCountingSmallDictionary

    struct · ferroui-base · v0.5.0

    struct RefCountingSmallDictionary<TKey>
    

    Counts the references to keys in an InlineDictionary.

    View source

    Members

    add

    fn add(self: &mut Self, key: TKey) -> bool
    

    Adds a reference to the key. Returns whether it is the first one.

    Source

    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.

    Source

    get_enumerator

    fn get_enumerator(self: &Self) -> InlineDictionaryEnumerator<'_, TKey, i32>
    

    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
    • IntoIterator

    Availability

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