pub struct ProgressBar { /* private fields */ }Expand description
进度条组件
Implementations§
Source§impl ProgressBar
impl ProgressBar
Sourcepub fn filled_style(self, style: Style) -> Self
pub fn filled_style(self, style: Style) -> Self
设置填充样式
Sourcepub fn percentage(&self) -> f64
pub fn percentage(&self) -> f64
获取当前进度百分比
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgressBar
impl RefUnwindSafe for ProgressBar
impl Send for ProgressBar
impl Sync for ProgressBar
impl Unpin for ProgressBar
impl UnsafeUnpin 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