pub enum FunctionPtrKind {
FnPtr,
Fn,
FnMut,
FnOnce,
}Expand description
The kind of function type
Variants§
FnPtr
An fn pointer. E.g. fn(String) -> bool.
Fn
Represents Fn
FnMut
Represents FnMut
FnOnce
Represents FnOnce
Trait Implementations§
Source§impl Clone for FunctionPtrKind
impl Clone for FunctionPtrKind
Source§fn clone(&self) -> FunctionPtrKind
fn clone(&self) -> FunctionPtrKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FunctionPtrKind
impl RefUnwindSafe for FunctionPtrKind
impl Send for FunctionPtrKind
impl Sync for FunctionPtrKind
impl Unpin for FunctionPtrKind
impl UnwindSafe for FunctionPtrKind
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