Skip to main content

IntoDestructor

Trait IntoDestructor 

Source
pub trait IntoDestructor { }
Expand description

Denotes types that can be used as destructors for effects.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoDestructor for ()

Implementors§

Source§

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