#[repr(transparent)]pub struct Function<ARGS, R>(pub fn(ARGS) -> R);
Expand description
Function pointer
Tuple Fields§
§0: fn(ARGS) -> R
Trait Implementations§
impl<ARGS, R> Copy for Function<ARGS, R>
Auto Trait Implementations§
impl<ARGS, R> Freeze for Function<ARGS, R>
impl<ARGS, R> RefUnwindSafe for Function<ARGS, R>
impl<ARGS, R> Send for Function<ARGS, R>
impl<ARGS, R> Sync for Function<ARGS, R>
impl<ARGS, R> Unpin for Function<ARGS, R>
impl<ARGS, R> UnwindSafe for Function<ARGS, R>
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