fn notify_observers(&'a self, notification: Self::NotificationType) {
        for observer_slot in self.iter() {
            match observer_slot {
                ObserverSlot::Owned(observer) => {
                    observer(&notification);
                }
                ObserverSlot::Linked(observer) => {
                    if let Some(linked_observer) = observer.upgrade() {
                        linked_observer(&notification);
                    };
                }
                ObserverSlot::Empty => (),
            };
        }
    }
/// dispatch a notification to each of the observers
dispatch a notification to each of the observers
dispatch a notification to each of the observers
fn notify_observers(&'a self, notification: Self::NotificationType) {
        for observer_slot in self.iter() {
            match observer_slot {
                ObserverSlot::Owned(observer) => {
                    observer(&notification);
                }
                ObserverSlot::Linked(observer) => {
                    if let Some(linked_observer) = observer.upgrade() {
                        linked_observer(&notification);
                    };
                }
                ObserverSlot::Empty => (),
            };
        }
    }
fn notify_observers ( & ' a self , notification : Self :: NotificationType ) { for observer_slot in self . iter ( ) { match observer_slot { ObserverSlot :: Owned ( observer ) => { observer ( & notification ) ; } ObserverSlot :: Linked ( observer ) => { if let Some ( linked_observer ) = observer . upgrade ( ) { linked_observer ( & notification ) ; } ; } ObserverSlot :: Empty => ( ) , } ; } }
dispatch a notification to each of the observers
dispatch a notification to each of the observers
&'a self
notification
Self::NotificationType