Struct rin::ecs::streaming_iterator::Repeat [−][src]
pub struct Repeat<T> { /* fields omitted */ }
A simple iterator that repeats an item endlessly.
Note: if the item is modified through StreamingIteratorMut
,
this will continue be reflected in further iterations!
Trait Implementations
impl<T> DoubleEndedStreamingIterator for Repeat<T>
[src]
impl<T> DoubleEndedStreamingIterator for Repeat<T>
[src]impl<T> DoubleEndedStreamingIteratorMut for Repeat<T>
[src]
impl<T> DoubleEndedStreamingIteratorMut for Repeat<T>
[src]impl<T> StreamingIterator for Repeat<T>
[src]
impl<T> StreamingIterator for Repeat<T>
[src]type Item = T
The type of the elements being iterated over.
pub fn advance(&mut self)
[src]
pub fn get(&self) -> Option<&<Repeat<T> as StreamingIterator>::Item>
[src]
pub fn size_hint(&self) -> (usize, Option<usize>)
[src]
pub fn next(&mut self) -> Option<&Self::Item>
[src]
pub fn all<F>(&mut self, f: F) -> bool where
F: FnMut(&Self::Item) -> bool,
[src]
F: FnMut(&Self::Item) -> bool,
pub fn any<F>(&mut self, f: F) -> bool where
F: FnMut(&Self::Item) -> bool,
[src]
F: FnMut(&Self::Item) -> bool,
pub fn by_ref(&mut self) -> &mut Self
[src]
pub fn chain<I>(self, other: I) -> Chain<Self, I> where
I: StreamingIterator<Item = Self::Item>,
[src]
I: StreamingIterator<Item = Self::Item>,
pub fn cloned(self) -> Cloned<Self>ⓘNotable traits for Cloned<I>
impl<I> Iterator for Cloned<I> where
I: StreamingIterator,
<I as StreamingIterator>::Item: Clone, type Item = <I as StreamingIterator>::Item;
where
Self::Item: Clone,
[src]
Notable traits for Cloned<I>
impl<I> Iterator for Cloned<I> where
I: StreamingIterator,
<I as StreamingIterator>::Item: Clone, type Item = <I as StreamingIterator>::Item;
Self::Item: Clone,
pub fn count(self) -> usize
[src]
pub fn filter<F>(self, f: F) -> Filter<Self, F> where
F: FnMut(&Self::Item) -> bool,
[src]
F: FnMut(&Self::Item) -> bool,
pub fn filter_map<B, F>(self, f: F) -> FilterMap<Self, B, F> where
F: FnMut(&Self::Item) -> Option<B>,
[src]
F: FnMut(&Self::Item) -> Option<B>,
pub fn flat_map<J, F>(self, f: F) -> FlatMap<Self, J, F> where
F: FnMut(&Self::Item) -> J,
J: StreamingIterator,
[src]
F: FnMut(&Self::Item) -> J,
J: StreamingIterator,
pub fn filter_map_deref<B, F>(self, f: F) -> FilterMapDeref<Self, F>ⓘNotable traits for FilterMapDeref<I, F>
impl<I, B, F> Iterator for FilterMapDeref<I, F> where
F: FnMut(&<I as StreamingIterator>::Item) -> Option<B>,
I: StreamingIterator, type Item = B;
where
F: FnMut(&Self::Item) -> Option<B>,
[src]
Notable traits for FilterMapDeref<I, F>
impl<I, B, F> Iterator for FilterMapDeref<I, F> where
F: FnMut(&<I as StreamingIterator>::Item) -> Option<B>,
I: StreamingIterator, type Item = B;
F: FnMut(&Self::Item) -> Option<B>,
pub fn find<F>(&mut self, f: F) -> Option<&Self::Item> where
F: FnMut(&Self::Item) -> bool,
[src]
F: FnMut(&Self::Item) -> bool,
pub fn fuse(self) -> Fuse<Self>
[src]
pub fn inspect<F>(self, f: F) -> Inspect<Self, F> where
F: FnMut(&Self::Item),
[src]
F: FnMut(&Self::Item),
pub fn map<B, F>(self, f: F) -> Map<Self, B, F> where
F: FnMut(&Self::Item) -> B,
[src]
F: FnMut(&Self::Item) -> B,
pub fn map_deref<B, F>(self, f: F) -> MapDeref<Self, F>ⓘNotable traits for MapDeref<I, F>
impl<I, B, F> Iterator for MapDeref<I, F> where
F: FnMut(&<I as StreamingIterator>::Item) -> B,
I: StreamingIterator, type Item = B;
where
F: FnMut(&Self::Item) -> B,
[src]
Notable traits for MapDeref<I, F>
impl<I, B, F> Iterator for MapDeref<I, F> where
F: FnMut(&<I as StreamingIterator>::Item) -> B,
I: StreamingIterator, type Item = B;
F: FnMut(&Self::Item) -> B,
pub fn map_ref<B, F>(self, f: F) -> MapRef<Self, F> where
B: ?Sized,
F: Fn(&Self::Item) -> &B,
[src]
B: ?Sized,
F: Fn(&Self::Item) -> &B,
pub fn nth(&mut self, n: usize) -> Option<&Self::Item>
[src]
pub fn position<F>(&mut self, f: F) -> Option<usize> where
F: FnMut(&Self::Item) -> bool,
[src]
F: FnMut(&Self::Item) -> bool,
pub fn skip(self, n: usize) -> Skip<Self>
[src]
pub fn skip_while<F>(self, f: F) -> SkipWhile<Self, F> where
F: FnMut(&Self::Item) -> bool,
[src]
F: FnMut(&Self::Item) -> bool,
pub fn take(self, n: usize) -> Take<Self>
[src]
pub fn take_while<F>(self, f: F) -> TakeWhile<Self, F> where
F: FnMut(&Self::Item) -> bool,
[src]
F: FnMut(&Self::Item) -> bool,
pub fn rev(self) -> Rev<Self> where
Self: DoubleEndedStreamingIterator,
[src]
Self: DoubleEndedStreamingIterator,
pub fn fold<B, F>(self, init: B, f: F) -> B where
F: FnMut(B, &Self::Item) -> B,
[src]
F: FnMut(B, &Self::Item) -> B,
pub fn for_each<F>(self, f: F) where
F: FnMut(&Self::Item),
[src]
F: FnMut(&Self::Item),
impl<T> StreamingIteratorMut for Repeat<T>
[src]
impl<T> StreamingIteratorMut for Repeat<T>
[src]pub fn get_mut(&mut self) -> Option<&mut <Repeat<T> as StreamingIterator>::Item>
[src]
pub fn next_mut(&mut self) -> Option<&mut Self::Item>
[src]
pub fn fold_mut<B, F>(self, init: B, f: F) -> B where
F: FnMut(B, &mut Self::Item) -> B,
[src]
F: FnMut(B, &mut Self::Item) -> B,
pub fn for_each_mut<F>(self, f: F) where
F: FnMut(&mut Self::Item),
[src]
F: FnMut(&mut Self::Item),
pub fn map_deref_mut<B, F>(self, f: F) -> MapDerefMut<Self, F>ⓘNotable traits for MapDerefMut<I, F>
impl<I, B, F> Iterator for MapDerefMut<I, F> where
F: FnMut(&mut <I as StreamingIterator>::Item) -> B,
I: StreamingIteratorMut, type Item = B;
where
F: FnMut(&mut Self::Item) -> B,
[src]
Notable traits for MapDerefMut<I, F>
impl<I, B, F> Iterator for MapDerefMut<I, F> where
F: FnMut(&mut <I as StreamingIterator>::Item) -> B,
I: StreamingIteratorMut, type Item = B;
F: FnMut(&mut Self::Item) -> B,
pub fn find_mut<F>(&mut self, f: F) -> Option<&mut Self::Item> where
F: FnMut(&Self::Item) -> bool,
[src]
F: FnMut(&Self::Item) -> bool,
Auto Trait Implementations
impl<T> RefUnwindSafe for Repeat<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Repeat<T> where
T: Send,
T: Send,
impl<T> Sync for Repeat<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Repeat<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Repeat<T> where
T: UnwindSafe,
T: 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<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]