Make EncodeWide implement FusedIterator
This commit is contained in:
parent
7417110cef
commit
fc6af819c4
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,7 @@ use crate::char;
|
||||||
use crate::collections::TryReserveError;
|
use crate::collections::TryReserveError;
|
||||||
use crate::fmt;
|
use crate::fmt;
|
||||||
use crate::hash::{Hash, Hasher};
|
use crate::hash::{Hash, Hasher};
|
||||||
use crate::iter::FromIterator;
|
use crate::iter::{FromIterator, FusedIterator};
|
||||||
use crate::mem;
|
use crate::mem;
|
||||||
use crate::ops;
|
use crate::ops;
|
||||||
use crate::rc::Rc;
|
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 {
|
impl Hash for CodePoint {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue