Struct ProgressBarIter
pub struct ProgressBarIter<T> { pub progress: ProgressBar, /* private fields */ }
Wraps an iterator to display its progress.
Fields
progress: ProgressBar
Implementations
impl<T> ProgressBarIter<T>
fn with_style(self, style: ProgressStyle) -> SelfBuilder-like function for setting underlying progress bar's style.
See [
ProgressBar::with_style()].fn with_prefix(self, prefix: impl Into<Cow<'static, str>>) -> SelfBuilder-like function for setting underlying progress bar's prefix.
See [
ProgressBar::with_prefix()].fn with_message(self, message: impl Into<Cow<'static, str>>) -> SelfBuilder-like function for setting underlying progress bar's message.
See [
ProgressBar::with_message()].fn with_position(self, position: u64) -> SelfBuilder-like function for setting underlying progress bar's position.
See [
ProgressBar::with_position()].fn with_elapsed(self, elapsed: Duration) -> SelfBuilder-like function for setting underlying progress bar's elapsed time.
See [
ProgressBar::with_elapsed()].fn with_finish(self, finish: ProgressFinish) -> SelfBuilder-like function for setting underlying progress bar's finish behavior.
See [
ProgressBar::with_finish()].
Trait Implementations
impl<R: BufRead> BufRead for ProgressBarIter<R>
fn fill_buf(&mut self) -> Result<&[u8]>fn consume(&mut self, amt: usize)
impl<R: Read> Read for ProgressBarIter<R>
fn read(&mut self, buf: &mut [u8]) -> Result<usize>fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>fn read_to_string(&mut self, buf: &mut String) -> Result<usize>fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
impl<S, T: Iterator<Item = S>> Iterator for ProgressBarIter<T>
type Item = S;fn next(&mut self) -> Option<Self::Item>
impl<S: Seek> Seek for ProgressBarIter<S>
fn seek(&mut self, f: SeekFrom) -> Result<u64>fn stream_position(&mut self) -> Result<u64>
impl<T: Debug> Debug for ProgressBarIter<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: DoubleEndedIterator> DoubleEndedIterator for ProgressBarIter<T>
fn next_back(&mut self) -> Option<Self::Item>
impl<T: ExactSizeIterator> ExactSizeIterator for ProgressBarIter<T>
fn len(&self) -> usize
impl<T: FusedIterator> FusedIterator for ProgressBarIter<T>
impl<W: Write> Write for ProgressBarIter<W>
fn write(&mut self, buf: &[u8]) -> Result<usize>fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize>fn flush(&mut self) -> Result<()>