pub struct ProgressBar { /* private fields */ }
Expand description
A single progress bar
Implementations§
Source§impl ProgressBar
impl ProgressBar
Sourcepub fn filled_style(self, style: Style) -> Self
pub fn filled_style(self, style: Style) -> Self
Set the style for filled portion
Sourcepub fn empty_style(self, style: Style) -> Self
pub fn empty_style(self, style: Style) -> Self
Set the style for empty portion
Sourcepub fn show_percentage(self, show: bool) -> Self
pub fn show_percentage(self, show: bool) -> Self
Set whether to show percentage
Sourcepub fn show_label(self, show: bool) -> Self
pub fn show_label(self, show: bool) -> Self
Set whether to show label
Sourcepub fn render_widget(&self, area: Rect, buf: &mut Buffer)
pub fn render_widget(&self, area: Rect, buf: &mut Buffer)
Render the progress bar to a buffer
Trait Implementations§
Source§impl Clone for ProgressBar
impl Clone for ProgressBar
Source§fn clone(&self) -> ProgressBar
fn clone(&self) -> ProgressBar
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProgressBar
impl Debug for ProgressBar
Source§impl Default for ProgressBar
impl Default for ProgressBar
Source§impl Widget for &ProgressBar
impl Widget for &ProgressBar
Auto Trait Implementations§
impl Freeze for ProgressBar
impl RefUnwindSafe for ProgressBar
impl Send for ProgressBar
impl Sync for ProgressBar
impl Unpin for ProgressBar
impl UnwindSafe for ProgressBar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more