pub struct ApplyFn<'a, A, B> { /* private fields */ }Expand description
An ApplyFn is a function from A to B wrapped in something Rust’s type
system can more easily digest. Arguments for
Apply::apply() are required to be of this type rather than
an arbitrary type matching Fn(A) -> B.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, A, B> Freeze for ApplyFn<'a, A, B>
impl<'a, A, B> !RefUnwindSafe for ApplyFn<'a, A, B>
impl<'a, A, B> !Send for ApplyFn<'a, A, B>
impl<'a, A, B> !Sync for ApplyFn<'a, A, B>
impl<'a, A, B> Unpin for ApplyFn<'a, A, B>
impl<'a, A, B> UnsafeUnpin for ApplyFn<'a, A, B>
impl<'a, A, B> !UnwindSafe for ApplyFn<'a, A, B>
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