pub struct SplitAsciiWhitespace<'s> { /* private fields */ }Expand description
Represents iterators over the non-ASCII-whitespace non-empty substrings of non-empty strings.
Note that this struct does not implement NonEmptyIterator as the iterator can be empty,
specifically, if the input string consists of ASCII whitespace only.
This struct is created by the split_ascii_whitespace method on NonEmptyStr.
Implementations§
Source§impl<'s> SplitAsciiWhitespace<'s>
impl<'s> SplitAsciiWhitespace<'s>
Sourcepub const fn new(string: &'s NonEmptyStr) -> Self
pub const fn new(string: &'s NonEmptyStr) -> Self
Constructs Self.
Trait Implementations§
Source§impl<'s> Debug for SplitAsciiWhitespace<'s>
impl<'s> Debug for SplitAsciiWhitespace<'s>
Source§impl<'s> IntoIterator for SplitAsciiWhitespace<'s>
impl<'s> IntoIterator for SplitAsciiWhitespace<'s>
Auto Trait Implementations§
impl<'s> Freeze for SplitAsciiWhitespace<'s>
impl<'s> RefUnwindSafe for SplitAsciiWhitespace<'s>
impl<'s> Send for SplitAsciiWhitespace<'s>
impl<'s> Sync for SplitAsciiWhitespace<'s>
impl<'s> Unpin for SplitAsciiWhitespace<'s>
impl<'s> UnwindSafe for SplitAsciiWhitespace<'s>
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<I> TryIntoNonEmptyIterator for Iwhere
I: IntoIterator,
impl<I> TryIntoNonEmptyIterator for Iwhere
I: IntoIterator,
Source§type Item = <I as IntoIterator>::Item
type Item = <I as IntoIterator>::Item
The type of the items being iterated over.
Source§type IntoNonEmptyIter = NonEmptyAdapter<Peekable<<I as IntoIterator>::IntoIter>>
type IntoNonEmptyIter = NonEmptyAdapter<Peekable<<I as IntoIterator>::IntoIter>>
Which kind of
NonEmptyIterator are we turning this into?