pub struct Custom<F>(pub F);Expand description
Custom user-supplied closure. Matches #[reducer(custom = "path::fn")]
in spirit (the macro inlines the call rather than going through this
type, but Custom is provided for programmatic composition).
Tuple Fields§
§0: FTrait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Custom<F>where
F: Freeze,
impl<F> RefUnwindSafe for Custom<F>where
F: RefUnwindSafe,
impl<F> Send for Custom<F>where
F: Send,
impl<F> Sync for Custom<F>where
F: Sync,
impl<F> Unpin for Custom<F>where
F: Unpin,
impl<F> UnsafeUnpin for Custom<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for Custom<F>where
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