pub trait Filter {
type Fetch: for<'a> Fetch<'a>;
// Required methods
fn fetch(self) -> Self::Fetch;
unsafe fn get_world<'a>(
fetch: &Self::Fetch,
borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows,
id: Id,
) -> bool;
unsafe fn get<'a>(
fetch: &Self::Fetch,
borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows,
) -> bool;
}
Required Associated Types§
Required Methods§
fn fetch(self) -> Self::Fetch
unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool
unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool
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.