pub struct BindableList<T: PropertyValue> { /* private fields */ }Expand description
A notifying list that bindings can index into: a FerroList together
with the untyped change event that binding indexers subscribe to.
As a model object it has identity equality.
Implementations§
Source§impl<T: PropertyValue> BindableList<T>
impl<T: PropertyValue> BindableList<T>
Trait Implementations§
Source§impl<T: PropertyValue> IBindableList for BindableList<T>
impl<T: PropertyValue> IBindableList for BindableList<T>
Source§fn get_item(&self, index: usize) -> Option<BoxedValue>
fn get_item(&self, index: usize) -> Option<BoxedValue>
The item at
index as an untyped value, or None if out of range.Source§fn set_item(&self, index: usize, value: &BoxedValue) -> bool
fn set_item(&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§fn as_notify_collection_changed(&self) -> Option<&dyn INotifyCollectionChanged>
fn as_notify_collection_changed(&self) -> Option<&dyn INotifyCollectionChanged>
The change notifications of the list, if it is a notifying list.
Source§impl<T: PropertyValue> INotifyCollectionChanged for BindableList<T>
impl<T: PropertyValue> INotifyCollectionChanged for BindableList<T>
Source§fn collection_changed(&self) -> &Event<CollectionChange>
fn collection_changed(&self) -> &Event<CollectionChange>
The event raised when the collection changes.
Auto Trait Implementations§
impl<T> !Freeze for BindableList<T>
impl<T> !RefUnwindSafe for BindableList<T>
impl<T> !Send for BindableList<T>
impl<T> !Sync for BindableList<T>
impl<T> !UnwindSafe for BindableList<T>
impl<T> Unpin for BindableList<T>
impl<T> UnsafeUnpin for BindableList<T>where
FerroList<T>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more