Skip to main content

FnPtr

Trait FnPtr 

Source
pub trait FnPtr:
    PartialEq
    + Eq
    + PartialOrd
    + Ord
    + Hash
    + Pointer
    + Debug
    + Clone
    + Copy
    + Send
    + Sync
    + Unpin
    + UnwindSafe
    + RefUnwindSafe
    + Sized
    + 'static { }
Expand description

Marker trait for function pointers (fn).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F> FnPtr for F
where F: PartialEq + Eq + PartialOrd + Ord + Hash + Pointer + Debug + Clone + Copy + Send + Sync + Unpin + UnwindSafe + RefUnwindSafe + Sized + 'static,