pub trait CollectionExtract<S>: Send + Sync {
type Item;
// Required method
fn extract<'s>(&self, s: &'s S) -> &'s [Self::Item];
// Provided methods
fn contains(&self, _s: &S, _item: &Self::Item) -> bool { ... }
fn change_source(&self) -> ChangeSource { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn contains(&self, _s: &S, _item: &Self::Item) -> bool
fn change_source(&self) -> ChangeSource
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".