Struct ToCasefold
pub struct ToCasefold(pub(in ::char) CaseMappingIter);
Returns an iterator that yields the case-folded equivalent of a char.
This struct is created by the to_casefold_unnormalized method on char. See
its documentation for more.
Fields
0: CaseMappingIter
Trait Implementations
impl Clone for ToCasefold
fn clone(&self) -> ToCasefold
impl Debug for ToCasefold
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for ToCasefold
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl DoubleEndedIterator for ToCasefold
fn next_back(&mut self) -> Option<char>fn rfold<Acc, Fold>(self, init: Acc, rfold: Fold) -> Acc where Fold: FnMut(Acc, Self::Item) -> Acc,fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
impl ExactSizeIterator for ToCasefold
fn len(&self) -> usizefn is_empty(&self) -> bool
impl FusedIterator for ToCasefold
impl Iterator for ToCasefold
type Item = char;fn next(&mut self) -> Option<char>fn size_hint(&self) -> (usize, Option<usize>)fn fold<Acc, Fold>(self, init: Acc, fold: Fold) -> Acc where Fold: FnMut(Acc, Self::Item) -> Acc,fn count(self) -> usizefn last(self) -> Option<Self::Item>fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>unsafe fn __iterator_get_unchecked(&mut self, idx: usize) -> Self::Item
impl TrustedLen for ToCasefold
impl TrustedRandomAccess for ToCasefold
impl TrustedRandomAccessNoCoerce for ToCasefold
const MAY_HAVE_SIDE_EFFECT: bool = false;
Auto Trait Implementations
impl Freeze for ToCasefold
impl RefUnwindSafe for ToCasefold
impl Send for ToCasefold
impl Sync for ToCasefold
impl Unpin for ToCasefold
impl UnsafeUnpin for ToCasefold
impl UnwindSafe for ToCasefold
Blanket Implementations
impl<I> IntoIterator for ToCasefold
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for ToCasefold
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ToCasefold
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ToCasefold
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ToCasefold
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ToCasefold
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for ToCasefold
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for ToCasefold
impl<T, U> Into<U> for ToCasefold
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 ToCasefold
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 ToCasefold
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>