pub trait Disposable: Send + 'static {
// Required method
fn dispose(self: Box<Self>);
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
pub trait Disposable: Send + 'static {
// Required method
fn dispose(self: Box<Self>);
}This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".