Struct RangeFromIter
pub struct RangeFromIter<A> { pub(in ::range::iter) start: A, pub(in ::range::iter) exhausted: bool }
By-value RangeFrom iterator.
Fields
start: Aexhausted: boolWhether the maximum value of the iterator has yielded. Only used when overflow checks are enabled.
Implementations
impl<A: Step> RangeFromIter<A>
fn remainder(self) -> RangeFrom<A>Returns the remainder of the range being iterated over.
Examples
let range = from; let mut iter = range.into_iter; assert_eq!; iter.next; assert_eq!;
Trait Implementations
impl<A: Clone> Clone for RangeFromIter<A>
fn clone(&self) -> RangeFromIter<A>
impl<A: Debug> Debug for RangeFromIter<A>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<A: Step> FusedIterator for RangeFromIter<A>
impl<A: Step> Iterator for RangeFromIter<A>
type Item = A;fn next(&mut self) -> Option<A>fn size_hint(&self) -> (usize, Option<usize>)fn nth(&mut self, n: usize) -> Option<A>
impl<A: TrustedStep> TrustedLen for RangeFromIter<A>
Auto Trait Implementations
impl<A> Freeze for RangeFromIter<A>
where
A: Freeze,
impl<A> RefUnwindSafe for RangeFromIter<A>
where
A: RefUnwindSafe,
impl<A> Send for RangeFromIter<A>
where
A: Send,
impl<A> Sync for RangeFromIter<A>
where
A: Sync,
impl<A> Unpin for RangeFromIter<A>
where
A: Unpin,
impl<A> UnsafeUnpin for RangeFromIter<A>
where
A: UnsafeUnpin,
impl<A> UnwindSafe for RangeFromIter<A>
where
A: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for RangeFromIter<A>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for RangeFromIter<A>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RangeFromIter<A>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RangeFromIter<A>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for RangeFromIter<A>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for RangeFromIter<A>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for RangeFromIter<A>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for RangeFromIter<A>
impl<T, U> Into<U> for RangeFromIter<A>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RangeFromIter<A>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for RangeFromIter<A>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>