Struct SplitNReverse

pub struct SplitNReverse<'h, 's> { /* private fields */ }

An iterator over at most n substrings in a byte string, split by a separator, in reverse.

'h is the lifetime of the byte string being split (the haystack), while 's is the lifetime of the byte string doing the splitting.

Trait Implementations

impl<'h, 's> Clone for SplitNReverse<'h, 's>

fn clone(&self) -> SplitNReverse<'h, 's>

impl<'h, 's> Debug for SplitNReverse<'h, 's>

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

impl<'h, 's> Iterator for SplitNReverse<'h, 's>

type Item = &'h [u8];
fn next(&mut self) -> Option<&'h [u8]>

Auto Trait Implementations

impl<'h, 's> Freeze for SplitNReverse<'h, 's>

impl<'h, 's> RefUnwindSafe for SplitNReverse<'h, 's>

impl<'h, 's> Send for SplitNReverse<'h, 's>

impl<'h, 's> Sync for SplitNReverse<'h, 's>

impl<'h, 's> Unpin for SplitNReverse<'h, 's>

impl<'h, 's> UnsafeUnpin for SplitNReverse<'h, 's>

impl<'h, 's> UnwindSafe for SplitNReverse<'h, 's>

Blanket Implementations

impl<I> IntoIterator for SplitNReverse<'h, 's> where I: Iterator,

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

impl<T> Any for SplitNReverse<'h, 's> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SplitNReverse<'h, 's> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SplitNReverse<'h, 's> where T: ?Sized,

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

impl<T> CloneToUninit for SplitNReverse<'h, 's> where T: Clone,

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

impl<T> From<T> for SplitNReverse<'h, 's>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for SplitNReverse<'h, 's> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for SplitNReverse<'h, 's> 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 SplitNReverse<'h, 's> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for SplitNReverse<'h, 's> where U: TryFrom<T>,

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