Struct SplitInternal

pub(in ::str) struct SplitInternal<'a, P: Pattern> { pub(in ::str) start: usize, pub(in ::str) end: usize, pub(in ::str) matcher: P::Searcher<'a>, pub(in ::str) allow_trailing_empty: bool, pub(in ::str) finished: bool }

Fields

start: usize
end: usize
matcher: P::Searcher<'a>
allow_trailing_empty: bool
finished: bool

Implementations

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

fn get_end(&mut self) -> Option<&'a str>
fn next(&mut self) -> Option<&'a str>
fn next_inclusive(&mut self) -> Option<&'a str>
fn next_back(&mut self) -> Option<&'a str>
where
    P::Searcher<'a>: ReverseSearcher<'a>,
fn next_back_inclusive(&mut self) -> Option<&'a str>
where
    P::Searcher<'a>: ReverseSearcher<'a>,
fn remainder(&self) -> Option<&'a str>

Trait Implementations

impl<'a, P> Clone for SplitInternal<'a, P> where P: Pattern<Searcher<'a>: Clone>,

fn clone(&self) -> Self

impl<'a, P> Debug for SplitInternal<'a, P> where P: Pattern<Searcher<'a>: Debug>,

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

Auto Trait Implementations

impl<'a, P> Freeze for SplitInternal<'a, P> where <P as Pattern>::Searcher<'a>: Freeze,

impl<'a, P> RefUnwindSafe for SplitInternal<'a, P> where <P as Pattern>::Searcher<'a>: RefUnwindSafe,

impl<'a, P> Send for SplitInternal<'a, P> where <P as Pattern>::Searcher<'a>: Send,

impl<'a, P> Sync for SplitInternal<'a, P> where <P as Pattern>::Searcher<'a>: Sync,

impl<'a, P> Unpin for SplitInternal<'a, P> where <P as Pattern>::Searcher<'a>: Unpin,

impl<'a, P> UnsafeUnpin for SplitInternal<'a, P> where <P as Pattern>::Searcher<'a>: UnsafeUnpin,

impl<'a, P> UnwindSafe for SplitInternal<'a, P> where <P as Pattern>::Searcher<'a>: UnwindSafe,

Blanket Implementations

impl<T> Any for SplitInternal<'a, P> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SplitInternal<'a, P> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SplitInternal<'a, P> where T: ?Sized,

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

impl<T> CloneToUninit for SplitInternal<'a, P> where T: Clone,

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

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for SplitInternal<'a, P> where T: ?Sized,

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

impl<T> SizedTypeProperties for SplitInternal<'a, P>

impl<T, U> Into<U> for SplitInternal<'a, P> 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 SplitInternal<'a, P> 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 SplitInternal<'a, P> where U: TryFrom<T>,

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