Struct ProgressBarIter

struct ProgressBarIter<T> { ... }

Wraps an iterator to display its progress.

Fields

progress: ProgressBar

Implementations

impl<T> ProgressBarIter<T>

fn with_style(self: Self, style: ProgressStyle) -> Self

Builder-like function for setting underlying progress bar's style.

See [ProgressBar::with_style()].

fn with_prefix<impl Into<Cow<'static, str>>: Into<Cow<'static, str>>>(self: Self, prefix: impl Into<Cow<'static, str>>) -> Self

Builder-like function for setting underlying progress bar's prefix.

See [ProgressBar::with_prefix()].

fn with_message<impl Into<Cow<'static, str>>: Into<Cow<'static, str>>>(self: Self, message: impl Into<Cow<'static, str>>) -> Self

Builder-like function for setting underlying progress bar's message.

See [ProgressBar::with_message()].

fn with_position(self: Self, position: u64) -> Self

Builder-like function for setting underlying progress bar's position.

See [ProgressBar::with_position()].

fn with_elapsed(self: Self, elapsed: Duration) -> Self

Builder-like function for setting underlying progress bar's elapsed time.

See [ProgressBar::with_elapsed()].

fn with_finish(self: Self, finish: ProgressFinish) -> Self

Builder-like function for setting underlying progress bar's finish behavior.

See [ProgressBar::with_finish()].

impl<I> IntoIterator for ProgressBarIter<T>

fn into_iter(self: Self) -> I

impl<R: io::BufRead> BufRead for ProgressBarIter<R>

fn fill_buf(self: &mut Self) -> Result<&[u8]>
fn consume(self: &mut Self, amt: usize)

impl<R: io::Read> Read for ProgressBarIter<R>

fn read(self: &mut Self, buf: &mut [u8]) -> Result<usize>
fn read_vectored(self: &mut Self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>
fn read_to_string(self: &mut Self, buf: &mut String) -> Result<usize>
fn read_exact(self: &mut Self, buf: &mut [u8]) -> Result<()>

impl<S, T> ProgressIterator for ProgressBarIter<T>

fn progress_with(self: Self, progress: ProgressBar) -> ProgressBarIter<T>

impl<S, T: Iterator<Item = S>> Iterator for ProgressBarIter<T>

fn next(self: &mut Self) -> Option<<Self as >::Item>

impl<S: io::Seek> Seek for ProgressBarIter<S>

fn seek(self: &mut Self, f: SeekFrom) -> Result<u64>
fn stream_position(self: &mut Self) -> Result<u64>

impl<T> Any for ProgressBarIter<T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ProgressBarIter<T>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ProgressBarIter<T>

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

impl<T> Freeze for ProgressBarIter<T>

impl<T> From for ProgressBarIter<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> RefUnwindSafe for ProgressBarIter<T>

impl<T> Send for ProgressBarIter<T>

impl<T> Sync for ProgressBarIter<T>

impl<T> Unpin for ProgressBarIter<T>

impl<T> UnsafeUnpin for ProgressBarIter<T>

impl<T> UnwindSafe for ProgressBarIter<T>

impl<T, U> Into for ProgressBarIter<T>

fn into(self: 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 for ProgressBarIter<T>

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

impl<T, U> TryInto for ProgressBarIter<T>

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

impl<T: $crate::fmt::Debug> Debug for ProgressBarIter<T>

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

impl<T: DoubleEndedIterator> DoubleEndedIterator for ProgressBarIter<T>

fn next_back(self: &mut Self) -> Option<<Self as >::Item>

impl<T: ExactSizeIterator> ExactSizeIterator for ProgressBarIter<T>

fn len(self: &Self) -> usize

impl<T: FusedIterator> FusedIterator for ProgressBarIter<T>

impl<W: io::Write> Write for ProgressBarIter<W>

fn write(self: &mut Self, buf: &[u8]) -> Result<usize>
fn write_vectored(self: &mut Self, bufs: &[IoSlice<'_>]) -> Result<usize>
fn flush(self: &mut Self) -> Result<()>