Skip to main content

SharedNotifyCollectionChangedEventArgs

Struct SharedNotifyCollectionChangedEventArgs 

Source
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§

Source§

impl<T> SharedNotifyCollectionChangedEventArgs<T>

Source

pub fn action(&self) -> NotifyCollectionChangedAction

The action that caused the notification.

Source

pub fn new_items(&self) -> &[T]

The items involved in the change that are new.

Source

pub fn old_items(&self) -> &[T]

The items affected by a replace, remove or move.

Source

pub fn new_starting_index(&self) -> i32

The index at which the change occurred; -1 when not applicable.

Source

pub fn old_starting_index(&self) -> i32

The index at which a move, remove or replace occurred; -1 when not applicable.

Source

pub fn as_args(&self) -> NotifyCollectionChangedEventArgs<'_, T>

The change in the borrowed form handlers take.

Trait Implementations§

Source§

impl<T> Clone for SharedNotifyCollectionChangedEventArgs<T>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<T> PartialEq for SharedNotifyCollectionChangedEventArgs<T>

Source§

fn eq(&self, other: &SharedNotifyCollectionChangedEventArgs<T>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Auto Trait Implementations§

§

impl<T> !Send for SharedNotifyCollectionChangedEventArgs<T>

§

impl<T> !Sync for SharedNotifyCollectionChangedEventArgs<T>

§

impl<T> Freeze for SharedNotifyCollectionChangedEventArgs<T>
where Rc<SharedNotifyCollectionChangedData<T>>: Freeze,

§

impl<T> RefUnwindSafe for SharedNotifyCollectionChangedEventArgs<T>
where Rc<SharedNotifyCollectionChangedData<T>>: RefUnwindSafe,

§

impl<T> Unpin for SharedNotifyCollectionChangedEventArgs<T>
where Rc<SharedNotifyCollectionChangedData<T>>: Unpin,

§

impl<T> UnsafeUnpin for SharedNotifyCollectionChangedEventArgs<T>
where Rc<SharedNotifyCollectionChangedData<T>>: UnsafeUnpin,

§

impl<T> UnwindSafe for SharedNotifyCollectionChangedEventArgs<T>
where Rc<SharedNotifyCollectionChangedData<T>>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AnyValue for T
where T: PartialEq + 'static,

Source§

fn any_value_as_any(&self) -> &(dyn Any + 'static)

Source§

fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool

Source§

fn any_value_type_name(&self) -> &'static str

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

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
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PropertyValue for T
where T: Clone + PartialEq + 'static,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.