pub struct SplitWhitespace<'s> { /* private fields */ }Expand description
Represents iterators over the non-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 whitespace only.
This struct is created by the split_whitespace method on NonEmptyStr.
Implementations§
Source§impl<'s> SplitWhitespace<'s>
impl<'s> SplitWhitespace<'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 SplitWhitespace<'s>
impl<'s> Debug for SplitWhitespace<'s>
Source§impl<'s> IntoIterator for SplitWhitespace<'s>
impl<'s> IntoIterator for SplitWhitespace<'s>
Auto Trait Implementations§
impl<'s> Freeze for SplitWhitespace<'s>
impl<'s> RefUnwindSafe for SplitWhitespace<'s>
impl<'s> Send for SplitWhitespace<'s>
impl<'s> Sync for SplitWhitespace<'s>
impl<'s> Unpin for SplitWhitespace<'s>
impl<'s> UnwindSafe for SplitWhitespace<'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?