[][src]Trait dotrix_ecs::Selector

pub trait Selector<'w> {
    type Iter: Iterator;
    type Component: Component;
    fn borrow(container: &'w Container) -> Self::Iter;

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

Trait defenition of Selector to control mutability of borrows

Associated Types

Loading content...

Required methods

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

Loading content...

Provided methods

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

Loading content...

Implementations on Foreign Types

impl<'w, C, '_> Selector<'w> for &'_ C where
    C: Component
[src]

type Iter = Iter<'w, C>

type Component = C

impl<'w, C, '_> Selector<'w> for &'_ mut C where
    C: Component
[src]

type Iter = IterMut<'w, C>

type Component = C

Loading content...

Implementors

Loading content...