Struct rin::ecs::operators::ParStorageIter [−][src]
pub struct ParStorageIter<'r, S> { /* fields omitted */ }
Trait Implementations
impl<'a, 'r, S> ParallelIterator for ParStorageIter<'r, S> where
S: Send + Sync + StorageRef<'r> + 'r,
<S as StorageRef<'r>>::Component: Send,
[src]
impl<'a, 'r, S> ParallelIterator for ParStorageIter<'r, S> where
S: Send + Sync + StorageRef<'r> + 'r,
<S as StorageRef<'r>>::Component: Send,
[src]type Item = <S as StorageRef<'r>>::Component
The type of item that this parallel iterator produces.
For example, if you use the for_each
method, this is the type of
item that your closure will be invoked with. Read more
pub fn drive_unindexed<C>(
self,
consumer: C
) -> <C as Consumer<<ParStorageIter<'r, S> as ParallelIterator>::Item>>::Result where
C: UnindexedConsumer<<ParStorageIter<'r, S> as ParallelIterator>::Item>,
[src]
self,
consumer: C
) -> <C as Consumer<<ParStorageIter<'r, S> as ParallelIterator>::Item>>::Result where
C: UnindexedConsumer<<ParStorageIter<'r, S> as ParallelIterator>::Item>,
pub fn for_each<OP>(self, op: OP) where
OP: Fn(Self::Item) + Sync + Send,
[src]
OP: Fn(Self::Item) + Sync + Send,
pub fn for_each_with<OP, T>(self, init: T, op: OP) where
T: Send + Clone,
OP: Fn(&mut T, Self::Item) + Sync + Send,
[src]
T: Send + Clone,
OP: Fn(&mut T, Self::Item) + Sync + Send,
pub fn for_each_init<OP, INIT, T>(self, init: INIT, op: OP) where
INIT: Fn() -> T + Sync + Send,
OP: Fn(&mut T, Self::Item) + Sync + Send,
[src]
INIT: Fn() -> T + Sync + Send,
OP: Fn(&mut T, Self::Item) + Sync + Send,
pub fn try_for_each<OP, R>(self, op: OP) -> R where
R: Try<Ok = ()> + Send,
OP: Fn(Self::Item) -> R + Sync + Send,
[src]
R: Try<Ok = ()> + Send,
OP: Fn(Self::Item) -> R + Sync + Send,
pub fn try_for_each_with<OP, T, R>(self, init: T, op: OP) -> R where
T: Send + Clone,
R: Try<Ok = ()> + Send,
OP: Fn(&mut T, Self::Item) -> R + Sync + Send,
[src]
T: Send + Clone,
R: Try<Ok = ()> + Send,
OP: Fn(&mut T, Self::Item) -> R + Sync + Send,
pub fn try_for_each_init<OP, INIT, T, R>(self, init: INIT, op: OP) -> R where
INIT: Fn() -> T + Sync + Send,
R: Try<Ok = ()> + Send,
OP: Fn(&mut T, Self::Item) -> R + Sync + Send,
[src]
INIT: Fn() -> T + Sync + Send,
R: Try<Ok = ()> + Send,
OP: Fn(&mut T, Self::Item) -> R + Sync + Send,
pub fn count(self) -> usize
[src]
pub fn map<F, R>(self, map_op: F) -> Map<Self, F> where
F: Fn(Self::Item) -> R + Sync + Send,
R: Send,
[src]
F: Fn(Self::Item) -> R + Sync + Send,
R: Send,
pub fn map_with<F, T, R>(self, init: T, map_op: F) -> MapWith<Self, T, F> where
T: Send + Clone,
F: Fn(&mut T, Self::Item) -> R + Sync + Send,
R: Send,
[src]
T: Send + Clone,
F: Fn(&mut T, Self::Item) -> R + Sync + Send,
R: Send,
pub fn map_init<F, INIT, T, R>(
self,
init: INIT,
map_op: F
) -> MapInit<Self, INIT, F> where
INIT: Fn() -> T + Sync + Send,
F: Fn(&mut T, Self::Item) -> R + Sync + Send,
R: Send,
[src]
self,
init: INIT,
map_op: F
) -> MapInit<Self, INIT, F> where
INIT: Fn() -> T + Sync + Send,
F: Fn(&mut T, Self::Item) -> R + Sync + Send,
R: Send,
pub fn cloned<'a, T>(self) -> Cloned<Self> where
Self: ParallelIterator<Item = &'a T>,
T: 'a + Clone + Send,
[src]
Self: ParallelIterator<Item = &'a T>,
T: 'a + Clone + Send,
pub fn copied<'a, T>(self) -> Copied<Self> where
Self: ParallelIterator<Item = &'a T>,
T: 'a + Copy + Send,
[src]
Self: ParallelIterator<Item = &'a T>,
T: 'a + Copy + Send,
pub fn inspect<OP>(self, inspect_op: OP) -> Inspect<Self, OP> where
OP: Fn(&Self::Item) + Sync + Send,
[src]
OP: Fn(&Self::Item) + Sync + Send,
pub fn update<F>(self, update_op: F) -> Update<Self, F> where
F: Fn(&mut Self::Item) + Sync + Send,
[src]
F: Fn(&mut Self::Item) + Sync + Send,
pub fn filter<P>(self, filter_op: P) -> Filter<Self, P> where
P: Fn(&Self::Item) -> bool + Sync + Send,
[src]
P: Fn(&Self::Item) -> bool + Sync + Send,
pub fn filter_map<P, R>(self, filter_op: P) -> FilterMap<Self, P> where
P: Fn(Self::Item) -> Option<R> + Sync + Send,
R: Send,
[src]
P: Fn(Self::Item) -> Option<R> + Sync + Send,
R: Send,
pub fn flat_map<F, PI>(self, map_op: F) -> FlatMap<Self, F> where
PI: IntoParallelIterator,
F: Fn(Self::Item) -> PI + Sync + Send,
[src]
PI: IntoParallelIterator,
F: Fn(Self::Item) -> PI + Sync + Send,
pub fn flat_map_iter<F, SI>(self, map_op: F) -> FlatMapIter<Self, F> where
F: Fn(Self::Item) -> SI + Sync + Send,
SI: IntoIterator,
<SI as IntoIterator>::Item: Send,
[src]
F: Fn(Self::Item) -> SI + Sync + Send,
SI: IntoIterator,
<SI as IntoIterator>::Item: Send,
pub fn flatten(self) -> Flatten<Self> where
Self::Item: IntoParallelIterator,
[src]
Self::Item: IntoParallelIterator,
pub fn flatten_iter(self) -> FlattenIter<Self> where
Self::Item: IntoIterator,
<Self::Item as IntoIterator>::Item: Send,
[src]
Self::Item: IntoIterator,
<Self::Item as IntoIterator>::Item: Send,
pub fn reduce<OP, ID>(self, identity: ID, op: OP) -> Self::Item where
ID: Fn() -> Self::Item + Sync + Send,
OP: Fn(Self::Item, Self::Item) -> Self::Item + Sync + Send,
[src]
ID: Fn() -> Self::Item + Sync + Send,
OP: Fn(Self::Item, Self::Item) -> Self::Item + Sync + Send,
pub fn reduce_with<OP>(self, op: OP) -> Option<Self::Item> where
OP: Fn(Self::Item, Self::Item) -> Self::Item + Sync + Send,
[src]
OP: Fn(Self::Item, Self::Item) -> Self::Item + Sync + Send,
pub fn try_reduce<T, OP, ID>(self, identity: ID, op: OP) -> Self::Item where
ID: Fn() -> T + Sync + Send,
OP: Fn(T, T) -> Self::Item + Sync + Send,
Self::Item: Try,
<Self::Item as Try>::Ok == T,
[src]
ID: Fn() -> T + Sync + Send,
OP: Fn(T, T) -> Self::Item + Sync + Send,
Self::Item: Try,
<Self::Item as Try>::Ok == T,
pub fn try_reduce_with<T, OP>(self, op: OP) -> Option<Self::Item> where
OP: Fn(T, T) -> Self::Item + Sync + Send,
Self::Item: Try,
<Self::Item as Try>::Ok == T,
[src]
OP: Fn(T, T) -> Self::Item + Sync + Send,
Self::Item: Try,
<Self::Item as Try>::Ok == T,
pub fn fold<T, ID, F>(self, identity: ID, fold_op: F) -> Fold<Self, ID, F> where
T: Send,
F: Fn(T, Self::Item) -> T + Sync + Send,
ID: Fn() -> T + Sync + Send,
[src]
T: Send,
F: Fn(T, Self::Item) -> T + Sync + Send,
ID: Fn() -> T + Sync + Send,
pub fn fold_with<F, T>(self, init: T, fold_op: F) -> FoldWith<Self, T, F> where
T: Send + Clone,
F: Fn(T, Self::Item) -> T + Sync + Send,
[src]
T: Send + Clone,
F: Fn(T, Self::Item) -> T + Sync + Send,
pub fn try_fold<T, R, ID, F>(
self,
identity: ID,
fold_op: F
) -> TryFold<Self, R, ID, F> where
F: Fn(T, Self::Item) -> R + Sync + Send,
R: Try<Ok = T> + Send,
ID: Fn() -> T + Sync + Send,
[src]
self,
identity: ID,
fold_op: F
) -> TryFold<Self, R, ID, F> where
F: Fn(T, Self::Item) -> R + Sync + Send,
R: Try<Ok = T> + Send,
ID: Fn() -> T + Sync + Send,
pub fn try_fold_with<F, T, R>(
self,
init: T,
fold_op: F
) -> TryFoldWith<Self, R, F> where
T: Clone + Send,
F: Fn(T, Self::Item) -> R + Sync + Send,
R: Try<Ok = T> + Send,
[src]
self,
init: T,
fold_op: F
) -> TryFoldWith<Self, R, F> where
T: Clone + Send,
F: Fn(T, Self::Item) -> R + Sync + Send,
R: Try<Ok = T> + Send,
pub fn sum<S>(self) -> S where
S: Send + Sum<Self::Item> + Sum<S>,
[src]
S: Send + Sum<Self::Item> + Sum<S>,
pub fn product<P>(self) -> P where
P: Send + Product<Self::Item> + Product<P>,
[src]
P: Send + Product<Self::Item> + Product<P>,
pub fn min(self) -> Option<Self::Item> where
Self::Item: Ord,
[src]
Self::Item: Ord,
pub fn min_by<F>(self, f: F) -> Option<Self::Item> where
F: Sync + Send + Fn(&Self::Item, &Self::Item) -> Ordering,
[src]
F: Sync + Send + Fn(&Self::Item, &Self::Item) -> Ordering,
pub fn min_by_key<K, F>(self, f: F) -> Option<Self::Item> where
F: Sync + Send + Fn(&Self::Item) -> K,
K: Ord + Send,
[src]
F: Sync + Send + Fn(&Self::Item) -> K,
K: Ord + Send,
pub fn max(self) -> Option<Self::Item> where
Self::Item: Ord,
[src]
Self::Item: Ord,
pub fn max_by<F>(self, f: F) -> Option<Self::Item> where
F: Sync + Send + Fn(&Self::Item, &Self::Item) -> Ordering,
[src]
F: Sync + Send + Fn(&Self::Item, &Self::Item) -> Ordering,
pub fn max_by_key<K, F>(self, f: F) -> Option<Self::Item> where
F: Sync + Send + Fn(&Self::Item) -> K,
K: Ord + Send,
[src]
F: Sync + Send + Fn(&Self::Item) -> K,
K: Ord + Send,
pub fn chain<C>(
self,
chain: C
) -> Chain<Self, <C as IntoParallelIterator>::Iter> where
C: IntoParallelIterator<Item = Self::Item>,
[src]
self,
chain: C
) -> Chain<Self, <C as IntoParallelIterator>::Iter> where
C: IntoParallelIterator<Item = Self::Item>,
pub fn find_any<P>(self, predicate: P) -> Option<Self::Item> where
P: Fn(&Self::Item) -> bool + Sync + Send,
[src]
P: Fn(&Self::Item) -> bool + Sync + Send,
pub fn find_first<P>(self, predicate: P) -> Option<Self::Item> where
P: Fn(&Self::Item) -> bool + Sync + Send,
[src]
P: Fn(&Self::Item) -> bool + Sync + Send,
pub fn find_last<P>(self, predicate: P) -> Option<Self::Item> where
P: Fn(&Self::Item) -> bool + Sync + Send,
[src]
P: Fn(&Self::Item) -> bool + Sync + Send,
pub fn find_map_any<P, R>(self, predicate: P) -> Option<R> where
P: Fn(Self::Item) -> Option<R> + Sync + Send,
R: Send,
[src]
P: Fn(Self::Item) -> Option<R> + Sync + Send,
R: Send,
pub fn find_map_first<P, R>(self, predicate: P) -> Option<R> where
P: Fn(Self::Item) -> Option<R> + Sync + Send,
R: Send,
[src]
P: Fn(Self::Item) -> Option<R> + Sync + Send,
R: Send,
pub fn find_map_last<P, R>(self, predicate: P) -> Option<R> where
P: Fn(Self::Item) -> Option<R> + Sync + Send,
R: Send,
[src]
P: Fn(Self::Item) -> Option<R> + Sync + Send,
R: Send,
pub fn any<P>(self, predicate: P) -> bool where
P: Fn(Self::Item) -> bool + Sync + Send,
[src]
P: Fn(Self::Item) -> bool + Sync + Send,
pub fn all<P>(self, predicate: P) -> bool where
P: Fn(Self::Item) -> bool + Sync + Send,
[src]
P: Fn(Self::Item) -> bool + Sync + Send,
pub fn while_some<T>(self) -> WhileSome<Self> where
Self: ParallelIterator<Item = Option<T>>,
T: Send,
[src]
Self: ParallelIterator<Item = Option<T>>,
T: Send,
pub fn panic_fuse(self) -> PanicFuse<Self>
[src]
pub fn collect<C>(self) -> C where
C: FromParallelIterator<Self::Item>,
[src]
C: FromParallelIterator<Self::Item>,
pub fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB) where
Self: ParallelIterator<Item = (A, B)>,
B: Send,
A: Send,
FromA: Default + Send + ParallelExtend<A>,
FromB: Default + Send + ParallelExtend<B>,
[src]
Self: ParallelIterator<Item = (A, B)>,
B: Send,
A: Send,
FromA: Default + Send + ParallelExtend<A>,
FromB: Default + Send + ParallelExtend<B>,
pub fn partition<A, B, P>(self, predicate: P) -> (A, B) where
P: Fn(&Self::Item) -> bool + Sync + Send,
B: Default + Send + ParallelExtend<Self::Item>,
A: Default + Send + ParallelExtend<Self::Item>,
[src]
P: Fn(&Self::Item) -> bool + Sync + Send,
B: Default + Send + ParallelExtend<Self::Item>,
A: Default + Send + ParallelExtend<Self::Item>,
pub fn partition_map<A, B, P, L, R>(self, predicate: P) -> (A, B) where
P: Fn(Self::Item) -> Either<L, R> + Sync + Send,
B: Default + Send + ParallelExtend<R>,
A: Default + Send + ParallelExtend<L>,
L: Send,
R: Send,
[src]
P: Fn(Self::Item) -> Either<L, R> + Sync + Send,
B: Default + Send + ParallelExtend<R>,
A: Default + Send + ParallelExtend<L>,
L: Send,
R: Send,
pub fn intersperse(self, element: Self::Item) -> Intersperse<Self> where
Self::Item: Clone,
[src]
Self::Item: Clone,
pub fn opt_len(&self) -> Option<usize>
[src]
Auto Trait Implementations
impl<'r, S> RefUnwindSafe for ParStorageIter<'r, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'r, S> Send for ParStorageIter<'r, S> where
S: Send,
S: Send,
impl<'r, S> Sync for ParStorageIter<'r, S> where
S: Sync,
S: Sync,
impl<'r, S> Unpin for ParStorageIter<'r, S> where
S: Unpin,
S: Unpin,
impl<'r, S> UnwindSafe for ParStorageIter<'r, S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> IntoParallelIterator for T where
T: ParallelIterator,
[src]
impl<T> IntoParallelIterator for T where
T: ParallelIterator,
[src]type Iter = T
The parallel iterator type that will be created.
type Item = <T as ParallelIterator>::Item
The type of item that the parallel iterator will produce.
pub fn into_par_iter(self) -> T
[src]
impl<I> IntoUniqueParallelIterator for I where
I: ParallelIterator,
[src]
impl<I> IntoUniqueParallelIterator for I where
I: ParallelIterator,
[src]pub unsafe fn into_unique(self) -> UniqueEntitiesIterWrapper<Self>
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]