pub struct Handler<'f, A: Clone, B: Clone, U: Clone, V: Clone>(/* private fields */);
Implementations§
Source§impl<'f, A: Clone, B: Clone, U: Clone, V: Clone> Handler<'f, A, B, U, V>
impl<'f, A: Clone, B: Clone, U: Clone, V: Clone> Handler<'f, A, B, U, V>
pub fn new<F>(f: F) -> Self
pub fn handle(self, e: Fx<'f, A, U>) -> Fx<'f, B, V>
pub fn clone_boxed(&self) -> Box<dyn FnOnce(Fx<'f, A, U>) -> Fx<'f, B, V> + 'f>
pub fn contra_map<S, T, H>(self, h: H) -> Handler<'f, S, B, T, V>
pub fn map<S, T, H>(self, h: H) -> Handler<'f, A, S, U, T>
Trait Implementations§
Source§impl<'f, A: Clone + Clone, B: Clone + Clone, U: Clone + Clone, V: Clone + Clone> Clone for Handler<'f, A, B, U, V>
impl<'f, A: Clone + Clone, B: Clone + Clone, U: Clone + Clone, V: Clone + Clone> Clone for Handler<'f, A, B, U, V>
Auto Trait Implementations§
impl<'f, A, B, U, V> Freeze for Handler<'f, A, B, U, V>
impl<'f, A, B, U, V> !RefUnwindSafe for Handler<'f, A, B, U, V>
impl<'f, A, B, U, V> !Send for Handler<'f, A, B, U, V>
impl<'f, A, B, U, V> !Sync for Handler<'f, A, B, U, V>
impl<'f, A, B, U, V> Unpin for Handler<'f, A, B, U, V>
impl<'f, A, B, U, V> !UnwindSafe for Handler<'f, A, B, U, V>
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