Trait ObjectIterator

Source
pub trait ObjectIterator<R>: Object<R> {
    // Provided methods
    fn skip(self, n: usize) -> SkipObject<Self, R>
       where Self: Sized { ... }
    fn step_by(self, n: usize) -> StepByObject<Self, R>
       where Self: Sized { ... }
    fn filter<F>(self, predicate: F) -> FilterObject<Self, F, R>
       where Self: Sized,
             F: Fn(Entity) -> bool { ... }
}
Expand description

A utility trait helps to modify an Object, by various functions.

Provided Methods§

Source

fn skip(self, n: usize) -> SkipObject<Self, R>
where Self: Sized,

Skip N entities.

Source

fn step_by(self, n: usize) -> StepByObject<Self, R>
where Self: Sized,

Make a step for an iteration of entities.

Source

fn filter<F>(self, predicate: F) -> FilterObject<Self, F, R>
where Self: Sized, F: Fn(Entity) -> bool,

Use a filter while iterating over entities.

Implementors§

Source§

impl<T, R> ObjectIterator<R> for T
where T: Object<R>,