Struct IntoChars
struct IntoChars { ... }
An iterator over the chars of a string.
This struct is created by the into_chars method on String.
See its documentation for more.
Implementations
impl IntoChars
fn as_str(self: &Self) -> &strViews the underlying data as a subslice of the original data.
Examples
let mut chars = Stringfrom.into_chars; assert_eq!; chars.next; assert_eq!; chars.next; chars.next; assert_eq!;fn into_string(self: Self) -> StringConsumes the
IntoChars, returning the remaining string.Examples
let chars = Stringfrom.into_chars; assert_eq!; let mut chars = Stringfrom.into_chars; chars.next; assert_eq!;
impl Clone for IntoChars
fn clone(self: &Self) -> IntoChars
impl Debug for IntoChars
fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl DoubleEndedIterator for IntoChars
fn next_back(self: &mut Self) -> Option<char>
impl Freeze for IntoChars
impl FusedIterator for IntoChars
impl Iterator for IntoChars
fn next(self: &mut Self) -> Option<char>fn count(self: Self) -> usizefn size_hint(self: &Self) -> (usize, Option<usize>)fn last(self: Self) -> Option<char>
impl RefUnwindSafe for IntoChars
impl Send for IntoChars
impl Sync for IntoChars
impl Unpin for IntoChars
impl UnwindSafe for IntoChars
impl<I> IntoIterator for IntoChars
fn into_iter(self: Self) -> I
impl<T> Any for IntoChars
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for IntoChars
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for IntoChars
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for IntoChars
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for IntoChars
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for IntoChars
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for IntoChars
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for IntoChars
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for IntoChars
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>