Skip to main content

TeardownCollectionExtension

Trait TeardownCollectionExtension 

Source
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§

Source

fn add<T>(&mut self, teardown: T)
where T: Into<Teardown>,

Source

fn add_fn<F>(&mut self, f: F)
where F: 'static + FnOnce() + Send + Sync, Self: Sized,

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§