FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RangeChange

    struct · ferroui-dynamic-data · v0.5.0

    struct RangeChange<T>
    

    The items of a change of a range, and the index of the first (RangeChange<T>).

    View source

    Members

    new

    fn new(items: Vec<T>, index: Option<usize>) -> Self
    

    RangeChange(IEnumerable<T>, int index = -1).

    Source

    count

    fn count(self: &Self) -> usize
    

    The number of items (Count).

    Source

    index

    fn index(self: &Self) -> Option<usize>
    

    The index of the first item (Index).

    Source

    items

    fn items(self: &Self) -> &[T]
    

    The items.

    Source

    iter

    fn iter(self: &Self) -> std::slice::Iter<'_, T>
    

    Source

    add

    fn add(self: &mut Self, item: T)
    

    Adds an item at the end (Add).

    Source

    insert

    fn insert(self: &mut Self, index: usize, item: T)
    

    Inserts an item (Insert).

    Source

    set_starting_index

    fn set_starting_index(self: &mut Self, index: Option<usize>)
    

    Sets the index of the first item (SetStartingIndex).

    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
    • Equivalent<K>
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Default
    • IntoIterator

    Availability

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