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.
Members
empty
fn empty() -> Self
Gets an empty view.
new
fn new(source: ItemsSource) -> Self
Initializes a new instance of the view for the specified data source.
from_view
fn from_view(view: &ItemsSourceView) -> Self
Reads an existing view as a typed view over the same source.
view
fn view(self: &Self) -> &Rc<ItemsSourceView>
The untyped view.
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.
iter
fn iter(self: &Self) -> impl Iterator<Item = Option<T>> + '_
The items, enumerated by index over the live collection.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedClassDefaultsErasedDestructorIntoEitherCloneDeref
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.