pub struct SharedNotifyCollectionChangedEventArgs<T>(/* private fields */);Expand description
The owned form of NotifyCollectionChangedEventArgs: a shared handle
to the description of a change. Clones refer to the same description and
handles compare by identity, as the event args object this mirrors.
Implementations§
Sourcepub fn action(&self) -> NotifyCollectionChangedAction
pub fn action(&self) -> NotifyCollectionChangedAction
The action that caused the notification.
Sourcepub fn new_starting_index(&self) -> i32
pub fn new_starting_index(&self) -> i32
The index at which the change occurred; -1 when not applicable.
Sourcepub fn old_starting_index(&self) -> i32
pub fn old_starting_index(&self) -> i32
The index at which a move, remove or replace occurred; -1 when not
applicable.
Sourcepub fn as_args(&self) -> NotifyCollectionChangedEventArgs<'_, T>
pub fn as_args(&self) -> NotifyCollectionChangedEventArgs<'_, T>
The change in the borrowed form handlers take.
Trait Implementations§
Source§fn clone(&self) -> SharedNotifyCollectionChangedEventArgs<T>
fn clone(&self) -> SharedNotifyCollectionChangedEventArgs<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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