Struct SplitN
struct SplitN<'a, P: Pattern>(_)
Created with the method splitn.
Implementations
impl<'a, P: Pattern> SplitN<'a, P>
fn remainder(self: &Self) -> Option<&'a str>Returns remainder of the split string.
If the iterator is empty, returns
None.Examples
let mut split = "Mary had a little lamb".splitn; assert_eq!; split.next; assert_eq!; split.by_ref.for_each; assert_eq!;
impl<'a, P> Clone for SplitN<'a, P>
fn clone(self: &Self) -> Self
impl<'a, P> Debug for SplitN<'a, P>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<'a, P> Freeze for SplitN<'a, P>
impl<'a, P> RefUnwindSafe for SplitN<'a, P>
impl<'a, P> Send for SplitN<'a, P>
impl<'a, P> Sync for SplitN<'a, P>
impl<'a, P> Unpin for SplitN<'a, P>
impl<'a, P> UnsafeUnpin for SplitN<'a, P>
impl<'a, P> UnwindSafe for SplitN<'a, P>
impl<'a, P: Pattern> FusedIterator for SplitN<'a, P>
impl<'a, P: Pattern> Iterator for SplitN<'a, P>
fn next(self: &mut Self) -> Option<&'a str>
impl<I> IntoIterator for SplitN<'a, P>
fn into_iter(self: Self) -> I
impl<T> Any for SplitN<'a, P>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for SplitN<'a, P>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for SplitN<'a, P>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for SplitN<'a, P>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for SplitN<'a, P>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for SplitN<'a, P>
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 SplitN<'a, P>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for SplitN<'a, P>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>