pub struct MapNotifier<N, F> { /* private fields */ }
Expand description
An implementation of Notifier
that wraps another Notifier
and applies
a function on notified objects.
Implementations§
Source§impl<N, F> MapNotifier<N, F>
impl<N, F> MapNotifier<N, F>
Sourcepub fn new(notifier: N, map: F) -> Self
pub fn new(notifier: N, map: F) -> Self
Creates a new MapNotifier
that wraps notifier
with a mapping
function F
.
Trait Implementations§
Auto Trait Implementations§
impl<N, F> Freeze for MapNotifier<N, F>
impl<N, F> RefUnwindSafe for MapNotifier<N, F>where
N: RefUnwindSafe,
F: RefUnwindSafe,
impl<N, F> Send for MapNotifier<N, F>
impl<N, F> Sync for MapNotifier<N, F>
impl<N, F> Unpin for MapNotifier<N, F>
impl<N, F> UnwindSafe for MapNotifier<N, F>where
N: UnwindSafe,
F: UnwindSafe,
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
Mutably borrows from an owned value. Read more
Source§impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
Source§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
Source§type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data
where
T: 'l
type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l
A guard providing read access to the data.
Source§fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
How to access the state.