pub trait TeardownCollectionExtension: TeardownCollection {
// Provided methods
fn add<T>(&mut self, teardown: T)
where T: Into<Teardown> { ... }
fn add_fn<F>(&mut self, f: F)
where F: 'static + FnOnce() + Send + Sync,
Self: Sized { ... }
}Provided 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.