pub struct Function<T, F>{ /* private fields */ }Expand description
A frame backed by a function.
This might be useful if you just wanted to hack together a fractal renderer,
or wanted to wrap an image coming from a C library. Using move closures
with this struct essentially lets you build anonymous frames.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, F> Freeze for Function<T, F>where
F: Freeze,
impl<T, F> RefUnwindSafe for Function<T, F>where
F: RefUnwindSafe,
impl<T, F> Send for Function<T, F>where
F: Send,
impl<T, F> Sync for Function<T, F>where
F: Sync,
impl<T, F> Unpin for Function<T, F>where
F: Unpin,
impl<T, F> UnwindSafe for Function<T, 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