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<()>
Auto Trait Implementations
impl<T> Freeze for ProgressBarIter<T>
where
T: Freeze,
impl<T> RefUnwindSafe for ProgressBarIter<T>
where
T: RefUnwindSafe,
impl<T> Send for ProgressBarIter<T>
where
T: Send,
impl<T> Sync for ProgressBarIter<T>
where
T: Sync,
impl<T> Unpin for ProgressBarIter<T>
where
T: Unpin,
impl<T> UnsafeUnpin for ProgressBarIter<T>
where
T: UnsafeUnpin,
impl<T> UnwindSafe for ProgressBarIter<T>
where
T: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for ProgressBarIter<T>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<S, T> ProgressIterator for ProgressBarIter<T>
where
T: Iterator<Item = S>,
fn progress_with(self, progress: ProgressBar) -> ProgressBarIter<T>
impl<T> Any for ProgressBarIter<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ProgressBarIter<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ProgressBarIter<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ProgressBarIter<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ProgressBarIter<T>
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 ProgressBarIter<T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ProgressBarIter<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>