Struct Split

pub struct Split<B> { pub(in ::io::util) buf: B, pub(in ::io::util) delim: u8 }

An iterator over the contents of an instance of BufRead split on a particular byte.

This struct is generally created by calling split on a BufRead. Please see the documentation of split for more details.

Fields

buf: B
delim: u8

Trait Implementations

impl<B: BufRead> Iterator for Split<B>

type Item = Result<Vec<u8>, Error>;
fn next(&mut self) -> Option<Result<Vec<u8>>>

impl<B: Debug> Debug for Split<B>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<B> Freeze for Split<B> where B: Freeze,

impl<B> RefUnwindSafe for Split<B> where B: RefUnwindSafe,

impl<B> Send for Split<B> where B: Send,

impl<B> Sync for Split<B> where B: Sync,

impl<B> Unpin for Split<B> where B: Unpin,

impl<B> UnsafeUnpin for Split<B> where B: UnsafeUnpin,

impl<B> UnwindSafe for Split<B> where B: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for Split<B> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for Split<B> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Split<B> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Split<B> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Split<B>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for Split<B> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for Split<B>

impl<T, U> Into<U> for Split<B> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Split<B> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for Split<B> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>