Struct Repeat
struct Repeat<A> { ... }
An iterator that repeats an element endlessly.
This struct is created by the [repeat()] function. See its documentation for more.
Implementations
impl<A> Freeze for Repeat<A>
impl<A> RefUnwindSafe for Repeat<A>
impl<A> Send for Repeat<A>
impl<A> Sync for Repeat<A>
impl<A> Unpin for Repeat<A>
impl<A> UnsafeUnpin for Repeat<A>
impl<A> UnwindSafe for Repeat<A>
impl<A: $crate::clone::Clone> Clone for Repeat<A>
fn clone(self: &Self) -> Repeat<A>
impl<A: $crate::fmt::Debug> Debug for Repeat<A>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<A: Clone> DoubleEndedIterator for Repeat<A>
fn next_back(self: &mut Self) -> Option<A>fn advance_back_by(self: &mut Self, n: usize) -> Result<(), NonZero<usize>>fn nth_back(self: &mut Self, n: usize) -> Option<A>
impl<A: Clone> FusedIterator for Repeat<A>
impl<A: Clone> Iterator for Repeat<A>
fn next(self: &mut Self) -> Option<A>fn size_hint(self: &Self) -> (usize, Option<usize>)fn advance_by(self: &mut Self, n: usize) -> Result<(), NonZero<usize>>fn nth(self: &mut Self, n: usize) -> Option<A>fn last(self: Self) -> Option<A>fn count(self: Self) -> usize
impl<A: Clone> TrustedLen for Repeat<A>
impl<I> IntoIterator for Repeat<A>
fn into_iter(self: Self) -> I
impl<T> Any for Repeat<A>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Repeat<A>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Repeat<A>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Repeat<A>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Repeat<A>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for Repeat<A>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Repeat<A>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Repeat<A>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>