FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ItemsSourceViewOf

    struct · ferroui-controls · v0.5.0

    struct ItemsSourceViewOf<T: PropertyValue>
    

    A typed ItemsSourceView: the items are read as T.

    With T = BoxedValue the items are read untyped.

    View source

    Members

    empty

    fn empty() -> Self
    

    Gets an empty view.

    Source

    new

    fn new(source: ItemsSource) -> Self
    

    Initializes a new instance of the view for the specified data source.

    Source

    from_view

    fn from_view(view: &ItemsSourceView) -> Self
    

    Reads an existing view as a typed view over the same source.

    Source

    view

    fn view(self: &Self) -> &Rc<ItemsSourceView>
    

    The untyped view.

    Source

    get_at

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

    Retrieves the item at the specified index: None for a null item. Panics if the index is out of range or the item is not a T.

    Source

    iter

    fn iter(self: &Self) -> impl Iterator<Item = Option<T>> + '_
    

    The items, enumerated by index over the live collection.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Deref

    Availability

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