Struct ToTitlecase

pub struct ToTitlecase(pub(in ::char) CaseMappingIter);

Returns an iterator that yields the titlecase equivalent of a char.

This struct is created by the to_titlecase method on char. See its documentation for more.

Fields

0: CaseMappingIter

Trait Implementations

impl Clone for ToTitlecase

fn clone(&self) -> ToTitlecase

impl Debug for ToTitlecase

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for ToTitlecase

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl DoubleEndedIterator for ToTitlecase

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 ToTitlecase

fn len(&self) -> usize
fn is_empty(&self) -> bool

impl FusedIterator for ToTitlecase

impl Iterator for ToTitlecase

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) -> usize
fn 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 ToTitlecase

impl TrustedRandomAccess for ToTitlecase

impl TrustedRandomAccessNoCoerce for ToTitlecase

const MAY_HAVE_SIDE_EFFECT: bool = false;

Auto Trait Implementations

impl Freeze for ToTitlecase

impl RefUnwindSafe for ToTitlecase

impl Send for ToTitlecase

impl Sync for ToTitlecase

impl Unpin for ToTitlecase

impl UnsafeUnpin for ToTitlecase

impl UnwindSafe for ToTitlecase

Blanket Implementations

impl<I> IntoIterator for ToTitlecase where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for ToTitlecase where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ToTitlecase where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ToTitlecase where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for ToTitlecase where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for ToTitlecase

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for ToTitlecase where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for ToTitlecase

impl<T, U> Into<U> for ToTitlecase where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ToTitlecase 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 ToTitlecase where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>