W3cubDocs

/Rust

Trait std::iter::FusedIterator

pub trait FusedIterator: Iterator { }
🔬 This is a nightly-only experimental API. (fused #35602)

An iterator that always continues to yield None when exhausted.

Calling next on a fused iterator that has returned None once is guaranteed to return None again. This trait should be implemented by all iterators that behave this way because it allows for some significant optimizations.

Note: In general, you should not use FusedIterator in generic bounds if you need a fused iterator. Instead, you should just call Iterator::fuse on the iterator. If the iterator is already fused, the additional Fuse wrapper will be a no-op with no performance penalty.

Implementations on Foreign Types

impl<I> FusedIterator for Utf16Encoder<I> where
    I: FusedIterator<Item = char>, 
[src]

Implementors

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/iter/trait.FusedIterator.html