pub trait Selector<'w> {
type Iter: Iterator;
type Component: Component;
// Required method
fn borrow(container: &'w Container) -> Self::Iter;
// Provided method
fn matches(container: &'w Container) -> bool { ... }
}Expand description
Trait defenition of Selector to control mutability of borrows
Required Associated Types§
Required Methods§
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.