pub struct ObservableCollectionMap<TDst: 'static + Clone> { /* private fields */ }Expand description
ObservableCollectionMap.
Trait Implementations§
Source§impl From<&ObservableCollectionMap<Rc<RefCell<dyn ControlObject>>>> for Box<dyn ObservableCollection<Rc<RefCell<dyn ControlObject>>>>
impl From<&ObservableCollectionMap<Rc<RefCell<dyn ControlObject>>>> for Box<dyn ObservableCollection<Rc<RefCell<dyn ControlObject>>>>
Source§fn from(src: &ObservableCollectionMap<Rc<RefCell<dyn ControlObject>>>) -> Self
fn from(src: &ObservableCollectionMap<Rc<RefCell<dyn ControlObject>>>) -> Self
Source§impl<V> From<&ObservableCollectionMap<Rc<V>>> for Box<dyn ObservableCollection<Rc<RefCell<dyn ControlObject>>>>where
V: 'static + ViewModel,
impl<V> From<&ObservableCollectionMap<Rc<V>>> for Box<dyn ObservableCollection<Rc<RefCell<dyn ControlObject>>>>where
V: 'static + ViewModel,
Source§fn from(src: &ObservableCollectionMap<Rc<V>>) -> Self
fn from(src: &ObservableCollectionMap<Rc<V>>) -> Self
Source§impl From<ObservableCollectionMap<Rc<RefCell<dyn ControlObject>>>> for Box<dyn ObservableCollection<Rc<RefCell<dyn ControlObject>>>>
impl From<ObservableCollectionMap<Rc<RefCell<dyn ControlObject>>>> for Box<dyn ObservableCollection<Rc<RefCell<dyn ControlObject>>>>
Source§fn from(src: ObservableCollectionMap<Rc<RefCell<dyn ControlObject>>>) -> Self
fn from(src: ObservableCollectionMap<Rc<RefCell<dyn ControlObject>>>) -> Self
Source§impl<V> From<ObservableCollectionMap<Rc<V>>> for Box<dyn ObservableCollection<Rc<RefCell<dyn ControlObject>>>>where
V: 'static + ViewModel,
Converts ObservableCollectionMap to observable collection.
impl<V> From<ObservableCollectionMap<Rc<V>>> for Box<dyn ObservableCollection<Rc<RefCell<dyn ControlObject>>>>where
V: 'static + ViewModel,
Converts ObservableCollectionMap to observable collection.
Source§fn from(src: ObservableCollectionMap<Rc<V>>) -> Self
fn from(src: ObservableCollectionMap<Rc<V>>) -> Self
Auto Trait Implementations§
impl<TDst> Freeze for ObservableCollectionMap<TDst>
impl<TDst> !RefUnwindSafe for ObservableCollectionMap<TDst>
impl<TDst> !Send for ObservableCollectionMap<TDst>
impl<TDst> !Sync for ObservableCollectionMap<TDst>
impl<TDst> Unpin for ObservableCollectionMap<TDst>
impl<TDst> !UnwindSafe for ObservableCollectionMap<TDst>
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
Source§impl<T, TSrcColl> ObservableCollectionExt<T> for TSrcCollwhere
T: 'static + Clone,
TSrcColl: ObservableCollection<T> + 'static,
impl<T, TSrcColl> ObservableCollectionExt<T> for TSrcCollwhere
T: 'static + Clone,
TSrcColl: ObservableCollection<T> + 'static,
Source§fn map<TDst, F>(&self, f: F) -> ObservableCollectionMap<TDst>
fn map<TDst, F>(&self, f: F) -> ObservableCollectionMap<TDst>
Map creates new observable collection.
It keeps mapped copy of every item.
The only connection between it and original observable collection
is by subscribing on the on_changed event of the source collection,
so we don’t have to keep implicit reference to the source collection.
The on_change event of source collection keeps a weak reference to our handler.
Source§impl<TSrc, TSrcColl> ObservableCollectionFlatMapExt<TSrc> for TSrcCollwhere
TSrc: Clone + 'static,
TSrcColl: ObservableCollection<TSrc> + 'static,
impl<TSrc, TSrcColl> ObservableCollectionFlatMapExt<TSrc> for TSrcCollwhere
TSrc: Clone + 'static,
TSrcColl: ObservableCollection<TSrc> + 'static,
Source§fn flat_map<TDst, TDstColl, F>(&self, f: F) -> ObservableCollectionFlatMap<TDst>where
TDst: Clone + 'static,
TDstColl: ObservableCollection<TDst> + IntoIterator<Item = TDst>,
F: FnMut(&TSrc) -> TDstColl + 'static,
fn flat_map<TDst, TDstColl, F>(&self, f: F) -> ObservableCollectionFlatMap<TDst>where
TDst: Clone + 'static,
TDstColl: ObservableCollection<TDst> + IntoIterator<Item = TDst>,
F: FnMut(&TSrc) -> TDstColl + 'static,
Flat map creates new observable collection.
It keeps mapped copy of every item.
The only connection between it and original observable collection
is by subscribing on the on_changed event of the source collection,
so we don’t have to keep implicit reference to the source collection.
The on_change event of source collection keeps a weak reference to our handler.