pub struct Closure<F, Fut>{
pub f: F,
}Expand description
see FnLayer
Fields§
§f: FImplementations§
Trait Implementations§
source§impl<F, Fut> FnLayerMethod for Closure<F, Fut>
impl<F, Fut> FnLayerMethod for Closure<F, Fut>
Auto Trait Implementations§
impl<F, Fut> Freeze for Closure<F, Fut>where
F: Freeze,
impl<F, Fut> RefUnwindSafe for Closure<F, Fut>where
F: RefUnwindSafe,
impl<F, Fut> Send for Closure<F, Fut>
impl<F, Fut> Sync for Closure<F, Fut>
impl<F, Fut> Unpin for Closure<F, Fut>where
F: Unpin,
impl<F, Fut> UnwindSafe for Closure<F, Fut>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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)