FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IIndexAware

    trait · ferroui-dynamic-data · v0.5.0

    trait IIndexAware
    

    An item that knows its index in a sorted collection (IIndexAware), which UpdateIndex sets.

    Deviation (DEVIATIONS.md, DynamicData): the setter takes &self, as the items are shared (Rc) and keep the index in a Cell; the index is a usize.

    View source

    Members

    index

    fn index(self: &Self) -> usize
    

    The index (Index).

    Source

    set_index

    fn set_index(self: &Self, index: usize)
    

    Sets the index (Index).

    Source

    Trait implementations

    Availability

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