Struct EncodeUtf16
pub struct EncodeUtf16<'a> { pub(in ::str) chars: Chars<'a>, pub(in ::str) extra: u16 }
An iterator of u16 over the string encoded as UTF-16.
This struct is created by the encode_utf16 method on str.
See its documentation for more.
Fields
chars: Chars<'a>extra: u16
Trait Implementations
impl Debug for EncodeUtf16<'_>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl FusedIterator for EncodeUtf16<'_>
impl<'a> Clone for EncodeUtf16<'a>
fn clone(&self) -> EncodeUtf16<'a>
impl<'a> Iterator for EncodeUtf16<'a>
type Item = u16;fn next(&mut self) -> Option<u16>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usize
Auto Trait Implementations
impl<'a> Freeze for EncodeUtf16<'a>
impl<'a> RefUnwindSafe for EncodeUtf16<'a>
impl<'a> Send for EncodeUtf16<'a>
impl<'a> Sync for EncodeUtf16<'a>
impl<'a> Unpin for EncodeUtf16<'a>
impl<'a> UnsafeUnpin for EncodeUtf16<'a>
impl<'a> UnwindSafe for EncodeUtf16<'a>
Blanket Implementations
impl<I> IntoIterator for EncodeUtf16<'a>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for EncodeUtf16<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for EncodeUtf16<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for EncodeUtf16<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for EncodeUtf16<'a>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for EncodeUtf16<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for EncodeUtf16<'a>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for EncodeUtf16<'a>
impl<T, U> Into<U> for EncodeUtf16<'a>
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 EncodeUtf16<'a>
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 EncodeUtf16<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>