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§
Sourcefn skip(self, n: usize) -> SkipObject<Self, R>where
Self: Sized,
fn skip(self, n: usize) -> SkipObject<Self, R>where
Self: Sized,
Skip N entities.
Sourcefn step_by(self, n: usize) -> StepByObject<Self, R>where
Self: Sized,
fn step_by(self, n: usize) -> StepByObject<Self, R>where
Self: Sized,
Make a step for an iteration of entities.