1.0.0[−][src]Trait nom::lib::std::iter::ExactSizeIterator
An iterator that knows its exact length.
Many Iterator
s don't know how many times they will iterate, but some do.
If an iterator knows how many times it can iterate, providing access to
that information can be useful. For example, if you want to iterate
backwards, a good start is to know where the end is.
When implementing an ExactSizeIterator
, you must also implement
Iterator
. When doing so, the implementation of size_hint
must
return the exact size of the iterator.
The len
method has a default implementation, so you usually shouldn't
implement it. However, you may be able to provide a more performant
implementation than the default, so overriding it in this case makes sense.
Examples
Basic usage:
// a finite range knows exactly how many times it will iterate let five = 0..5; assert_eq!(5, five.len());
In the module level docs, we implemented an Iterator
,
Counter
. Let's implement ExactSizeIterator
for it as well:
impl ExactSizeIterator for Counter { // We can easily calculate the remaining number of iterations. fn len(&self) -> usize { 5 - self.count } } // And now we can use it! let counter = Counter::new(); assert_eq!(5, counter.len());
Provided Methods
fn len(&self) -> usize
Returns the exact number of times the iterator will iterate.
This method has a default implementation, so you usually should not implement it directly. However, if you can provide a more efficient implementation, you can do so. See the trait-level docs for an example.
This function has the same safety guarantees as the size_hint
function.
Examples
Basic usage:
// a finite range knows exactly how many times it will iterate let five = 0..5; assert_eq!(5, five.len());
fn is_empty(&self) -> bool
exact_size_is_empty
)Returns whether the iterator is empty.
This method has a default implementation using self.len()
, so you
don't need to implement it yourself.
Examples
Basic usage:
#![feature(exact_size_is_empty)] let mut one_element = std::iter::once(0); assert!(!one_element.is_empty()); assert_eq!(one_element.next(), Some(0)); assert!(one_element.is_empty()); assert_eq!(one_element.next(), None);
Implementations on Foreign Types
impl ExactSizeIterator for Args
[src]
impl ExactSizeIterator for Args
impl ExactSizeIterator for ArgsOs
[src]
impl ExactSizeIterator for ArgsOs
impl ExactSizeIterator for EscapeDebug
[src]
impl ExactSizeIterator for EscapeDebug
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for EscapeDefault
[src]
impl ExactSizeIterator for EscapeDefault
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for EscapeDefault
[src]
impl ExactSizeIterator for EscapeDefault
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'_, I> ExactSizeIterator for &'_ mut I where
I: ExactSizeIterator + ?Sized,
[src]
impl<'_, I> ExactSizeIterator for &'_ mut I where
I: ExactSizeIterator + ?Sized,
impl ExactSizeIterator for EscapeUnicode
[src]
impl ExactSizeIterator for EscapeUnicode
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)Implementors
impl ExactSizeIterator for Range<usize>
[src]
impl ExactSizeIterator for Range<usize>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for Range<isize>
[src]
impl ExactSizeIterator for Range<isize>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for Range<i16>
[src]
impl ExactSizeIterator for Range<i16>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for Range<i32>
[src]
impl ExactSizeIterator for Range<i32>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for Range<i8>
[src]
impl ExactSizeIterator for Range<i8>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for Range<u16>
[src]
impl ExactSizeIterator for Range<u16>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for Range<u32>
[src]
impl ExactSizeIterator for Range<u32>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for Range<u8>
[src]
impl ExactSizeIterator for Range<u8>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for RangeInclusive<i16>
[src]
impl ExactSizeIterator for RangeInclusive<i16>
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for RangeInclusive<i8>
[src]
impl ExactSizeIterator for RangeInclusive<i8>
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for RangeInclusive<u16>
[src]
impl ExactSizeIterator for RangeInclusive<u16>
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl ExactSizeIterator for RangeInclusive<u8>
[src]
impl ExactSizeIterator for RangeInclusive<u8>
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'_> ExactSizeIterator for Bytes<'_>
[src]
impl<'_> ExactSizeIterator for Bytes<'_>
impl<'_, A> ExactSizeIterator for nom::lib::std::option::Iter<'_, A>
[src]
impl<'_, A> ExactSizeIterator for nom::lib::std::option::Iter<'_, A>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'_, A> ExactSizeIterator for nom::lib::std::option::IterMut<'_, A>
[src]
impl<'_, A> ExactSizeIterator for nom::lib::std::option::IterMut<'_, A>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'_, T> ExactSizeIterator for Windows<'_, T>
[src]
impl<'_, T> ExactSizeIterator for Windows<'_, T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'_, T> ExactSizeIterator for nom::lib::std::result::IterMut<'_, T>
[src]
impl<'_, T> ExactSizeIterator for nom::lib::std::result::IterMut<'_, T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'_, T> ExactSizeIterator for ChunksExact<'_, T>
[src]
impl<'_, T> ExactSizeIterator for ChunksExact<'_, T>
impl<'_, T> ExactSizeIterator for ChunksMut<'_, T>
[src]
impl<'_, T> ExactSizeIterator for ChunksMut<'_, T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'_, T> ExactSizeIterator for nom::lib::std::result::Iter<'_, T>
[src]
impl<'_, T> ExactSizeIterator for nom::lib::std::result::Iter<'_, T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'_, T> ExactSizeIterator for ChunksExactMut<'_, T>
[src]
impl<'_, T> ExactSizeIterator for ChunksExactMut<'_, T>
impl<'_, T> ExactSizeIterator for Chunks<'_, T>
[src]
impl<'_, T> ExactSizeIterator for Chunks<'_, T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, I> ExactSizeIterator for Splice<'a, I> where
I: Iterator,
[src]
impl<'a, I> ExactSizeIterator for Splice<'a, I> where
I: Iterator,
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, I, T> ExactSizeIterator for Cloned<I> where
I: ExactSizeIterator<Item = &'a T>,
T: 'a + Clone,
[src]
impl<'a, I, T> ExactSizeIterator for Cloned<I> where
I: ExactSizeIterator<Item = &'a T>,
T: 'a + Clone,
impl<'a, K> ExactSizeIterator for nom::lib::std::collections::hash_set::Drain<'a, K>
[src]
impl<'a, K> ExactSizeIterator for nom::lib::std::collections::hash_set::Drain<'a, K>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K> ExactSizeIterator for nom::lib::std::collections::hash_set::Iter<'a, K>
[src]
impl<'a, K> ExactSizeIterator for nom::lib::std::collections::hash_set::Iter<'a, K>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::Values<'a, K, V>
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::Values<'a, K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::ValuesMut<'a, K, V>
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::ValuesMut<'a, K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::Iter<'a, K, V>
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::Iter<'a, K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::Drain<'a, K, V>
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::Drain<'a, K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::Keys<'a, K, V>
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::Keys<'a, K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::IterMut<'a, K, V>
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::IterMut<'a, K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::Keys<'a, K, V>
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::Keys<'a, K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::Iter<'a, K, V> where
K: 'a,
V: 'a,
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::Iter<'a, K, V> where
K: 'a,
V: 'a,
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::Values<'a, K, V>
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::Values<'a, K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::ValuesMut<'a, K, V>
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::ValuesMut<'a, K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::IterMut<'a, K, V> where
K: 'a,
V: 'a,
[src]
impl<'a, K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::IterMut<'a, K, V> where
K: 'a,
V: 'a,
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, T> ExactSizeIterator for nom::lib::std::slice::IterMut<'a, T>
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::slice::IterMut<'a, T>
impl<'a, T> ExactSizeIterator for RChunksExact<'a, T>
[src]
impl<'a, T> ExactSizeIterator for RChunksExact<'a, T>
impl<'a, T> ExactSizeIterator for RChunks<'a, T>
[src]
impl<'a, T> ExactSizeIterator for RChunks<'a, T>
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, T> ExactSizeIterator for nom::lib::std::slice::Iter<'a, T>
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::slice::Iter<'a, T>
impl<'a, T> ExactSizeIterator for RChunksExactMut<'a, T>
[src]
impl<'a, T> ExactSizeIterator for RChunksExactMut<'a, T>
impl<'a, T> ExactSizeIterator for RChunksMut<'a, T>
[src]
impl<'a, T> ExactSizeIterator for RChunksMut<'a, T>
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, T> ExactSizeIterator for nom::lib::std::collections::vec_deque::IterMut<'a, T>
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::vec_deque::IterMut<'a, T>
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::linked_list::IterMut<'a, T>
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::linked_list::IterMut<'a, T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, T> ExactSizeIterator for nom::lib::std::collections::binary_heap::Iter<'a, T>
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::binary_heap::Iter<'a, T>
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::btree_set::Iter<'a, T>
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::btree_set::Iter<'a, T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, T> ExactSizeIterator for nom::lib::std::collections::vec_deque::Drain<'a, T> where
T: 'a,
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::vec_deque::Drain<'a, T> where
T: 'a,
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, T> ExactSizeIterator for nom::lib::std::collections::linked_list::Iter<'a, T>
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::linked_list::Iter<'a, T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<'a, T> ExactSizeIterator for nom::lib::std::vec::Drain<'a, T>
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::vec::Drain<'a, T>
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::vec_deque::Iter<'a, T>
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::vec_deque::Iter<'a, T>
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::binary_heap::Drain<'a, T> where
T: 'a,
[src]
impl<'a, T> ExactSizeIterator for nom::lib::std::collections::binary_heap::Drain<'a, T> where
T: 'a,
impl<A> ExactSizeIterator for nom::lib::std::option::IntoIter<A>
[src]
impl<A> ExactSizeIterator for nom::lib::std::option::IntoIter<A>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<A, B> ExactSizeIterator for Zip<A, B> where
A: ExactSizeIterator,
B: ExactSizeIterator,
[src]
impl<A, B> ExactSizeIterator for Zip<A, B> where
A: ExactSizeIterator,
B: ExactSizeIterator,
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<B, I, F> ExactSizeIterator for Map<I, F> where
F: FnMut(<I as Iterator>::Item) -> B,
I: ExactSizeIterator,
[src]
impl<B, I, F> ExactSizeIterator for Map<I, F> where
F: FnMut(<I as Iterator>::Item) -> B,
I: ExactSizeIterator,
impl<I> ExactSizeIterator for Enumerate<I> where
I: ExactSizeIterator,
[src]
impl<I> ExactSizeIterator for Enumerate<I> where
I: ExactSizeIterator,
impl<I> ExactSizeIterator for Fuse<I> where
I: ExactSizeIterator,
[src]
impl<I> ExactSizeIterator for Fuse<I> where
I: ExactSizeIterator,
impl<I> ExactSizeIterator for Peekable<I> where
I: ExactSizeIterator,
[src]
impl<I> ExactSizeIterator for Peekable<I> where
I: ExactSizeIterator,
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<I> ExactSizeIterator for Rev<I> where
I: ExactSizeIterator + DoubleEndedIterator,
[src]
impl<I> ExactSizeIterator for Rev<I> where
I: ExactSizeIterator + DoubleEndedIterator,
impl<I> ExactSizeIterator for Skip<I> where
I: ExactSizeIterator,
[src]
impl<I> ExactSizeIterator for Skip<I> where
I: ExactSizeIterator,
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<I> ExactSizeIterator for StepBy<I> where
I: ExactSizeIterator,
[src]
impl<I> ExactSizeIterator for StepBy<I> where
I: ExactSizeIterator,
fn len(&self) -> usize
1.0.0[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<I> ExactSizeIterator for Take<I> where
I: ExactSizeIterator,
[src]
impl<I> ExactSizeIterator for Take<I> where
I: ExactSizeIterator,
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<I> ExactSizeIterator for Box<I> where
I: ExactSizeIterator + ?Sized,
[src]
impl<I> ExactSizeIterator for Box<I> where
I: ExactSizeIterator + ?Sized,
impl<I, F> ExactSizeIterator for Inspect<I, F> where
F: FnMut(&<I as Iterator>::Item),
I: ExactSizeIterator,
[src]
impl<I, F> ExactSizeIterator for Inspect<I, F> where
F: FnMut(&<I as Iterator>::Item),
I: ExactSizeIterator,
impl<K> ExactSizeIterator for nom::lib::std::collections::hash_set::IntoIter<K>
[src]
impl<K> ExactSizeIterator for nom::lib::std::collections::hash_set::IntoIter<K>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::IntoIter<K, V>
[src]
impl<K, V> ExactSizeIterator for nom::lib::std::collections::hash_map::IntoIter<K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::IntoIter<K, V>
[src]
impl<K, V> ExactSizeIterator for nom::lib::std::collections::btree_map::IntoIter<K, V>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<T> ExactSizeIterator for Once<T>
[src]
impl<T> ExactSizeIterator for Once<T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<T> ExactSizeIterator for Empty<T>
[src]
impl<T> ExactSizeIterator for Empty<T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<T> ExactSizeIterator for nom::lib::std::result::IntoIter<T>
[src]
impl<T> ExactSizeIterator for nom::lib::std::result::IntoIter<T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<T> ExactSizeIterator for nom::lib::std::collections::btree_set::IntoIter<T>
[src]
impl<T> ExactSizeIterator for nom::lib::std::collections::btree_set::IntoIter<T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<T> ExactSizeIterator for nom::lib::std::collections::binary_heap::IntoIter<T>
[src]
impl<T> ExactSizeIterator for nom::lib::std::collections::binary_heap::IntoIter<T>
impl<T> ExactSizeIterator for nom::lib::std::collections::linked_list::IntoIter<T>
[src]
impl<T> ExactSizeIterator for nom::lib::std::collections::linked_list::IntoIter<T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
exact_size_is_empty
)impl<T> ExactSizeIterator for nom::lib::std::collections::vec_deque::IntoIter<T>
[src]
impl<T> ExactSizeIterator for nom::lib::std::collections::vec_deque::IntoIter<T>
impl<T> ExactSizeIterator for nom::lib::std::vec::IntoIter<T>
[src]
impl<T> ExactSizeIterator for nom::lib::std::vec::IntoIter<T>