Struct FieldsWith
pub struct FieldsWith<'a, F> { /* private fields */ }
An iterator over fields in the byte string, separated by a predicate over codepoints.
This iterator splits a byte string based on its predicate function such that the elements returned are separated by contiguous runs of codepoints for which the predicate returns true.
'a is the lifetime of the byte string being split, while F is the type
of the predicate, i.e., FnMut(char) -> bool.
Trait Implementations
impl<'a, F: Clone> Clone for FieldsWith<'a, F>
fn clone(&self) -> FieldsWith<'a, F>
impl<'a, F: Debug> Debug for FieldsWith<'a, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'a, F: FnMut(char) -> bool> Iterator for FieldsWith<'a, F>
type Item = &'a [u8];fn next(&mut self) -> Option<&'a [u8]>
Auto Trait Implementations
impl<'a, F> Freeze for FieldsWith<'a, F>
where
F: Freeze,
impl<'a, F> RefUnwindSafe for FieldsWith<'a, F>
where
F: RefUnwindSafe,
impl<'a, F> Send for FieldsWith<'a, F>
where
F: Send,
impl<'a, F> Sync for FieldsWith<'a, F>
where
F: Sync,
impl<'a, F> Unpin for FieldsWith<'a, F>
where
F: Unpin,
impl<'a, F> UnsafeUnpin for FieldsWith<'a, F>
where
F: UnsafeUnpin,
impl<'a, F> UnwindSafe for FieldsWith<'a, F>
where
F: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for FieldsWith<'a, F>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for FieldsWith<'a, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FieldsWith<'a, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FieldsWith<'a, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FieldsWith<'a, F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FieldsWith<'a, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for FieldsWith<'a, F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for FieldsWith<'a, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FieldsWith<'a, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FieldsWith<'a, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>