pub struct Mapper<T> { /* private fields */ }Implementations§
Source§impl<T> Mapper<T>
impl<T> Mapper<T>
pub fn register<E: Event, H>(&mut self) -> &mut Selfwhere
H: ResolveHandler<E, T>,
pub fn register_with<E: Event, R>(&mut self, resolver: R) -> &mut Selfwhere
R: ResolverType<T>,
pub fn find( &self, f: impl FnMut(&ResolveType) -> bool, ) -> Option<Arc<dyn Resolver<T>>>
pub fn filter(self, f: impl FnMut(&ResolveType) -> bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Mapper<T>
impl<T> !RefUnwindSafe for Mapper<T>
impl<T> Send for Mapper<T>
impl<T> Sync for Mapper<T>
impl<T> Unpin for Mapper<T>
impl<T> !UnwindSafe for Mapper<T>
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