pub struct TotalFileSizeColumn { /* private fields */ }Expand description
Renders the file size as “completed / total” (e.g., “1.2 MB / 5.0 MB”).
Shows both completed and total bytes in a single display.
Implementations§
Source§impl TotalFileSizeColumn
impl TotalFileSizeColumn
pub fn new() -> Self
Sourcepub fn separator(self, sep: &str) -> Self
pub fn separator(self, sep: &str) -> Self
Set the separator between completed and total (default: “ / “).
Sourcepub fn completed_style(self, style: Style) -> Self
pub fn completed_style(self, style: Style) -> Self
Set the style for completed bytes.
Sourcepub fn total_style(self, style: Style) -> Self
pub fn total_style(self, style: Style) -> Self
Set the style for total bytes.
Trait Implementations§
Source§impl Debug for TotalFileSizeColumn
impl Debug for TotalFileSizeColumn
Source§impl Default for TotalFileSizeColumn
impl Default for TotalFileSizeColumn
Source§impl ProgressColumn for TotalFileSizeColumn
impl ProgressColumn for TotalFileSizeColumn
Auto Trait Implementations§
impl Freeze for TotalFileSizeColumn
impl RefUnwindSafe for TotalFileSizeColumn
impl Send for TotalFileSizeColumn
impl Sync for TotalFileSizeColumn
impl Unpin for TotalFileSizeColumn
impl UnwindSafe for TotalFileSizeColumn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more