FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IBindableList

    trait · ferroui-base · v0.5.0

    trait IBindableList
    

    Untyped indexed access to a list, for bindings with an indexer in their path (Items[2]).

    View source

    Members

    count

    fn count(self: &Self) -> usize
    

    The number of items.

    Source

    item_type

    fn item_type(self: &Self) -> ValueType
    

    The type of the items.

    Source

    get_item

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

    The item at index as an untyped value, or None if out of range.

    Source

    set_item

    fn set_item(self: &Self, index: usize, value: &BoxedValue) -> bool
    

    Replaces the item at index. Returns false if the index is out of range, the list is read-only or the value is of the wrong type.

    Source

    as_notify_collection_changed

    fn as_notify_collection_changed(self: &Self) -> Option<&dyn INotifyCollectionChanged>
    

    The change notifications of the list, if it is a notifying list.

    Source

    Trait implementations

    Availability

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