pub(super) struct SplitInternal<'a, P: Pattern> {
pub(super) start: usize,
pub(super) end: usize,
pub(super) matcher: P::Searcher<'a>,
pub(super) allow_trailing_empty: bool,
pub(super) finished: bool,
}
Fields§
§start: usize
§end: usize
§matcher: P::Searcher<'a>
§allow_trailing_empty: bool
§finished: bool
Implementations§
Source§impl<'a, P: Pattern> SplitInternal<'a, P>
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§
Source§impl<'a, P> Clone for SplitInternal<'a, P>
impl<'a, P> Clone for SplitInternal<'a, P>
Auto Trait Implementations§
impl<'a, P> Freeze for SplitInternal<'a, P>
impl<'a, P> RefUnwindSafe for SplitInternal<'a, P>
impl<'a, P> Send for SplitInternal<'a, P>
impl<'a, P> Sync for SplitInternal<'a, P>
impl<'a, P> Unpin for SplitInternal<'a, P>
impl<'a, P> UnsafeUnpin for SplitInternal<'a, P>
impl<'a, P> UnwindSafe for SplitInternal<'a, P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more