Struct Split

struct Split<'a, P: Pattern>(_)

Created with the method split.

Implementations

impl<'a, P: Pattern> Split<'a, P>

fn remainder(self: &Self) -> Option<&'a str>

Returns remainder of the split string.

If the iterator is empty, returns None.

Examples

#![feature(str_split_remainder)]
let mut split = "Mary had a little lamb".split(' ');
assert_eq!(split.remainder(), Some("Mary had a little lamb"));
split.next();
assert_eq!(split.remainder(), Some("had a little lamb"));
split.by_ref().for_each(drop);
assert_eq!(split.remainder(), None);

impl<'a, P> Clone for Split<'a, P>

fn clone(self: &Self) -> Self

impl<'a, P> Debug for Split<'a, P>

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

impl<'a, P> DoubleEndedIterator for Split<'a, P>

fn next_back(self: &mut Self) -> Option<&'a str>

impl<'a, P> Freeze for Split<'a, P>

impl<'a, P> RefUnwindSafe for Split<'a, P>

impl<'a, P> Send for Split<'a, P>

impl<'a, P> Sync for Split<'a, P>

impl<'a, P> Unpin for Split<'a, P>

impl<'a, P> UnsafeUnpin for Split<'a, P>

impl<'a, P> UnwindSafe for Split<'a, P>

impl<'a, P: Pattern> FusedIterator for Split<'a, P>

impl<'a, P: Pattern> Iterator for Split<'a, P>

fn next(self: &mut Self) -> Option<&'a str>

impl<I> IntoIterator for Split<'a, P>

fn into_iter(self: Self) -> I

impl<T> Any for Split<'a, P>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Split<'a, P>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Split<'a, P>

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

impl<T> CloneToUninit for Split<'a, P>

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

impl<T> From for Split<'a, P>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Split<'a, P>

fn into(self: 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 for Split<'a, P>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Split<'a, P>

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