pub struct ItemsChangedEventArgs<'a> {
pub action: NotifyCollectionChangedAction,
pub new_items: ItemsView<'a>,
pub old_items: ItemsView<'a>,
pub new_starting_index: i32,
pub old_starting_index: i32,
}Expand description
A change to an untyped items list.
Fields§
§action: NotifyCollectionChangedActionThe action that caused the notification.
new_items: ItemsView<'a>The items involved in the change (added, or the replacements).
old_items: ItemsView<'a>The items affected by a replace, remove or move.
new_starting_index: i32The index at which the change occurred, or -1.
old_starting_index: i32The index at which a move, remove or replace occurred, or -1.
Implementations§
Source§impl ItemsChangedEventArgs<'static>
impl ItemsChangedEventArgs<'static>
Sourcepub const RESET: ItemsChangedEventArgs<'static>
pub const RESET: ItemsChangedEventArgs<'static>
The arguments of a reset notification.
Trait Implementations§
Source§impl<'a> Clone for ItemsChangedEventArgs<'a>
impl<'a> Clone for ItemsChangedEventArgs<'a>
impl<'a> Copy for ItemsChangedEventArgs<'a>
Source§impl<'a> Debug for ItemsChangedEventArgs<'a>
impl<'a> Debug for ItemsChangedEventArgs<'a>
Source§impl<'a> From<&NotifyCollectionChangedEventArgs<'a, Option<Rc<dyn AnyValue>>>> for ItemsChangedEventArgs<'a>
The change of a list of untyped items, as it is: the items are viewed in
place.
impl<'a> From<&NotifyCollectionChangedEventArgs<'a, Option<Rc<dyn AnyValue>>>> for ItemsChangedEventArgs<'a>
The change of a list of untyped items, as it is: the items are viewed in place.
Source§fn from(e: &NotifyCollectionChangedEventArgs<'a, Option<BoxedValue>>) -> Self
fn from(e: &NotifyCollectionChangedEventArgs<'a, Option<BoxedValue>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ItemsChangedEventArgs<'a>
impl<'a> !Send for ItemsChangedEventArgs<'a>
impl<'a> !Sync for ItemsChangedEventArgs<'a>
impl<'a> !UnwindSafe for ItemsChangedEventArgs<'a>
impl<'a> Freeze for ItemsChangedEventArgs<'a>
impl<'a> Unpin for ItemsChangedEventArgs<'a>
impl<'a> UnsafeUnpin for ItemsChangedEventArgs<'a>
Blanket Implementations§
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