Struct bstr::FieldsWith[][src]

pub struct FieldsWith<'a, F> { /* fields omitted */ }

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: Debug> Debug for FieldsWith<'a, F>[src]

impl<'a, F: FnMut(char) -> bool> Iterator for FieldsWith<'a, F>[src]

type Item = &'a [u8]

The type of the elements being iterated over.

Auto Trait Implementations

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> UnwindSafe for FieldsWith<'a, F> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.