FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ItemWithValue

    struct · ferroui-dynamic-data · v0.5.0

    struct ItemWithValue<T, V>
    

    An item and a value that goes with it (ItemWithValue<TObject, TValue>): equal when both parts are.

    View source

    Members

    new

    fn new(item: T, value: V) -> Self
    

    The pair (ItemWithValue(TObject, TValue)).

    Source

    item

    fn item(self: &Self) -> &T
    

    The item (Item).

    Source

    value

    fn value(self: &Self) -> &V
    

    The value (Value).

    Source

    into_parts

    fn into_parts(self: Self) -> (T, V)
    

    The item and the value.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • Equivalent<K>
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Display

    Availability

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