We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3462f79 commit 60fd119Copy full SHA for 60fd119
library/core/src/char/decode.rs
@@ -2,6 +2,7 @@
2
3
use crate::error::Error;
4
use crate::fmt;
5
+use crate::iter::FusedIterator;
6
7
/// An iterator that decodes UTF-16 encoded code points from an iterator of `u16`s.
8
///
@@ -105,6 +106,9 @@ impl<I: Iterator<Item = u16>> Iterator for DecodeUtf16<I> {
105
106
}
107
108
109
+#[stable(feature = "decode_utf16_fused_iterator", since = "CURRENT_RUSTC_VERSION")]
110
+impl<I: Iterator<Item = u16> + FusedIterator> FusedIterator for DecodeUtf16<I> {}
111
+
112
impl DecodeUtf16Error {
113
/// Returns the unpaired surrogate which caused this error.
114
#[must_use]
0 commit comments