mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Make EncodeWide implement FusedIterator
This commit is contained in:
parent
7417110cef
commit
fc6af819c4
@ -25,7 +25,7 @@ use crate::char;
|
||||
use crate::collections::TryReserveError;
|
||||
use crate::fmt;
|
||||
use crate::hash::{Hash, Hasher};
|
||||
use crate::iter::FromIterator;
|
||||
use crate::iter::{FromIterator, FusedIterator};
|
||||
use crate::mem;
|
||||
use crate::ops;
|
||||
use crate::rc::Rc;
|
||||
@ -899,6 +899,9 @@ impl<'a> Iterator for EncodeWide<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "encode_wide_fused_iterator", since = "1.62.0")]
|
||||
impl FusedIterator for EncodeWide<'_> {}
|
||||
|
||||
impl Hash for CodePoint {
|
||||
#[inline]
|
||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||
|
Loading…
Reference in New Issue
Block a user