pub struct RefSyncFn<'a, T, R> { /* private fields */ }
Expand description
A simple function wrapper that behaves like a &(dyn Fn(T) -> R + Sync)
type, but does not require a
virtual table.
Implementations§
Trait Implementations§
impl<T, R> Copy for RefSyncFn<'_, T, R>
impl<T, R> Send for RefSyncFn<'_, T, R>
impl<T, R> Sync for RefSyncFn<'_, T, R>
Auto Trait Implementations§
impl<'a, T, R> Freeze for RefSyncFn<'a, T, R>
impl<'a, T, R> RefUnwindSafe for RefSyncFn<'a, T, R>
impl<'a, T, R> Unpin for RefSyncFn<'a, T, R>
impl<'a, T, R> UnwindSafe for RefSyncFn<'a, T, 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