Trait IntoOptionalCleanFn

Source
pub trait IntoOptionalCleanFn: Sized {
    type CleanFn: 'static + FnOnce();

    // Required method
    fn into_optional_clean_fn(self) -> Option<Self::CleanFn>;
}

Required Associated Types§

Source

type CleanFn: 'static + FnOnce()

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl IntoOptionalCleanFn for ()

Source§

type CleanFn = &'static dyn Fn()

Source§

fn into_optional_clean_fn(self) -> Option<Self::CleanFn>

Source§

impl<T: IntoOptionalCleanFn> IntoOptionalCleanFn for Option<T>

Implementors§

Source§

impl<F> IntoOptionalCleanFn for F
where F: 'static + FnOnce(),