Query

Trait Query 

Source
pub trait Query<'w> {
    type Iter: Iterator + 'w;

    // Required methods
    fn select(container: &'w Container) -> Self::Iter;
    fn matches(container: &'w Container) -> bool;
}
Expand description

Trait definition of a Query

Required Associated Types§

Source

type Iter: Iterator + 'w

Required Methods§

Source

fn select(container: &'w Container) -> Self::Iter

Source

fn matches(container: &'w Container) -> 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<'w, A, B, C, D> Query<'w> for (A, B, C, D)
where A: Selector<'w> + 'w, B: Selector<'w> + 'w, C: Selector<'w> + 'w, D: Selector<'w> + 'w,

Source§

type Iter = Zipper<'w, (<A as Selector<'w>>::Iter, <B as Selector<'w>>::Iter, <C as Selector<'w>>::Iter, <D as Selector<'w>>::Iter)>

Source§

fn select(container: &'w Container) -> Self::Iter

Source§

fn matches(container: &'w Container) -> bool

Source§

impl<'w, B, C, D> Query<'w> for (B, C, D)
where B: Selector<'w> + 'w, C: Selector<'w> + 'w, D: Selector<'w> + 'w,

Source§

type Iter = Zipper<'w, (<B as Selector<'w>>::Iter, <C as Selector<'w>>::Iter, <D as Selector<'w>>::Iter)>

Source§

fn select(container: &'w Container) -> Self::Iter

Source§

fn matches(container: &'w Container) -> bool

Source§

impl<'w, C, D> Query<'w> for (C, D)
where C: Selector<'w> + 'w, D: Selector<'w> + 'w,

Source§

type Iter = Zipper<'w, (<C as Selector<'w>>::Iter, <D as Selector<'w>>::Iter)>

Source§

fn select(container: &'w Container) -> Self::Iter

Source§

fn matches(container: &'w Container) -> bool

Source§

impl<'w, D> Query<'w> for (D,)
where D: Selector<'w> + 'w,

Source§

type Iter = Zipper<'w, (<D as Selector<'w>>::Iter,)>

Source§

fn select(container: &'w Container) -> Self::Iter

Source§

fn matches(container: &'w Container) -> bool

Implementors§