Skip to main content

ISourceList

Trait ISourceList 

Source
pub trait ISourceList<T: Clone + PartialEq>: IObservableList<T> {
    // Required method
    fn edit_dyn(&self, update: &mut dyn FnMut(&mut dyn IExtendedList<T>));
}
Expand description

A list whose items are edited by its owner (ISourceList<T>).

Required Methods§

Source

fn edit_dyn(&self, update: &mut dyn FnMut(&mut dyn IExtendedList<T>))

Runs an edit; its changes are delivered as one change set when it ends (Edit).

Trait Implementations§

Source§

impl<T: Clone + PartialEq> PartialEq for dyn ISourceList<T>

Lists compare by identity (reference equality), so that they can be the items of a list.

Source§

fn eq(&self, other: &Self) -> bool

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

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

Inequality operator !=. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Clone + PartialEq + 'static> ISourceList<T> for SourceList<T>