Struct DecodeUtf16
pub struct DecodeUtf16<I>
where
I: Iterator<Item = u16>, { pub(in ::char::decode) iter: I, pub(in ::char::decode) buf: Option<u16> }
An iterator that decodes UTF-16 encoded code points from an iterator of u16s.
This struct is created by the decode_utf16 method on char. See its
documentation for more.
Fields
iter: Ibuf: Option<u16>
Trait Implementations
impl<I> Clone for DecodeUtf16<I>
where
I: Iterator<Item = u16> + Clone,
fn clone(&self) -> DecodeUtf16<I>
impl<I> Debug for DecodeUtf16<I>
where
I: Iterator<Item = u16> + Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I: Iterator<Item = u16> + FusedIterator> FusedIterator for DecodeUtf16<I>
impl<I: Iterator<Item = u16>> Iterator for DecodeUtf16<I>
type Item = Result<char, DecodeUtf16Error>;fn next(&mut self) -> Option<Result<char, DecodeUtf16Error>>fn size_hint(&self) -> (usize, Option<usize>)
Auto Trait Implementations
impl<I> Freeze for DecodeUtf16<I>
where
I: Freeze,
impl<I> RefUnwindSafe for DecodeUtf16<I>
where
I: RefUnwindSafe,
impl<I> Send for DecodeUtf16<I>
where
I: Send,
impl<I> Sync for DecodeUtf16<I>
where
I: Sync,
impl<I> Unpin for DecodeUtf16<I>
where
I: Unpin,
impl<I> UnsafeUnpin for DecodeUtf16<I>
where
I: UnsafeUnpin,
impl<I> UnwindSafe for DecodeUtf16<I>
where
I: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for DecodeUtf16<I>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for DecodeUtf16<I>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DecodeUtf16<I>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DecodeUtf16<I>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DecodeUtf16<I>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DecodeUtf16<I>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for DecodeUtf16<I>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for DecodeUtf16<I>
impl<T, U> Into<U> for DecodeUtf16<I>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DecodeUtf16<I>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for DecodeUtf16<I>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>