Trait Filter

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

Source

type Fetch: for<'a> Fetch<'a>

Required Methods§

Source

fn fetch(self) -> Self::Fetch

Source

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source

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.

Implementations on Foreign Types§

Source§

impl Filter for ()

Source§

type Fetch = ()

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter> Filter for (a0,)

Source§

type Fetch = (<a0 as Filter>::Fetch,)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter, a1: Filter> Filter for (a0, a1)

Source§

type Fetch = (<a0 as Filter>::Fetch, <a1 as Filter>::Fetch)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter, a1: Filter, a2: Filter> Filter for (a0, a1, a2)

Source§

type Fetch = (<a0 as Filter>::Fetch, <a1 as Filter>::Fetch, <a2 as Filter>::Fetch)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter, a1: Filter, a2: Filter, a3: Filter> Filter for (a0, a1, a2, a3)

Source§

type Fetch = (<a0 as Filter>::Fetch, <a1 as Filter>::Fetch, <a2 as Filter>::Fetch, <a3 as Filter>::Fetch)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter, a1: Filter, a2: Filter, a3: Filter, a4: Filter> Filter for (a0, a1, a2, a3, a4)

Source§

type Fetch = (<a0 as Filter>::Fetch, <a1 as Filter>::Fetch, <a2 as Filter>::Fetch, <a3 as Filter>::Fetch, <a4 as Filter>::Fetch)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter, a1: Filter, a2: Filter, a3: Filter, a4: Filter, a5: Filter> Filter for (a0, a1, a2, a3, a4, a5)

Source§

type Fetch = (<a0 as Filter>::Fetch, <a1 as Filter>::Fetch, <a2 as Filter>::Fetch, <a3 as Filter>::Fetch, <a4 as Filter>::Fetch, <a5 as Filter>::Fetch)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter, a1: Filter, a2: Filter, a3: Filter, a4: Filter, a5: Filter, a6: Filter> Filter for (a0, a1, a2, a3, a4, a5, a6)

Source§

type Fetch = (<a0 as Filter>::Fetch, <a1 as Filter>::Fetch, <a2 as Filter>::Fetch, <a3 as Filter>::Fetch, <a4 as Filter>::Fetch, <a5 as Filter>::Fetch, <a6 as Filter>::Fetch)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter, a1: Filter, a2: Filter, a3: Filter, a4: Filter, a5: Filter, a6: Filter, a7: Filter> Filter for (a0, a1, a2, a3, a4, a5, a6, a7)

Source§

type Fetch = (<a0 as Filter>::Fetch, <a1 as Filter>::Fetch, <a2 as Filter>::Fetch, <a3 as Filter>::Fetch, <a4 as Filter>::Fetch, <a5 as Filter>::Fetch, <a6 as Filter>::Fetch, <a7 as Filter>::Fetch)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter, a1: Filter, a2: Filter, a3: Filter, a4: Filter, a5: Filter, a6: Filter, a7: Filter, a8: Filter> Filter for (a0, a1, a2, a3, a4, a5, a6, a7, a8)

Source§

type Fetch = (<a0 as Filter>::Fetch, <a1 as Filter>::Fetch, <a2 as Filter>::Fetch, <a3 as Filter>::Fetch, <a4 as Filter>::Fetch, <a5 as Filter>::Fetch, <a6 as Filter>::Fetch, <a7 as Filter>::Fetch, <a8 as Filter>::Fetch)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Source§

impl<a0: Filter, a1: Filter, a2: Filter, a3: Filter, a4: Filter, a5: Filter, a6: Filter, a7: Filter, a8: Filter, a9: Filter> Filter for (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)

Source§

type Fetch = (<a0 as Filter>::Fetch, <a1 as Filter>::Fetch, <a2 as Filter>::Fetch, <a3 as Filter>::Fetch, <a4 as Filter>::Fetch, <a5 as Filter>::Fetch, <a6 as Filter>::Fetch, <a7 as Filter>::Fetch, <a8 as Filter>::Fetch, <a9 as Filter>::Fetch)

Source§

fn fetch(self) -> Self::Fetch

Source§

unsafe fn get_world<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::WorldBorrows, id: Id, ) -> bool

Source§

unsafe fn get<'a>( fetch: &Self::Fetch, borrows: &<Self::Fetch as Fetch<'a>>::DirectBorrows, ) -> bool

Implementors§