pub struct ProgressBar { /* private fields */ }Expand description
Implementations§
Source§impl ProgressBar
impl ProgressBar
pub fn new(progress: impl Into<f32>) -> ProgressBar
pub fn width(self, width: impl Into<Size>) -> ProgressBar
pub fn show_progress(self, show_progress: bool) -> ProgressBar
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 Component for ProgressBar
impl Component for ProgressBar
fn render(&self) -> impl IntoElement
fn render_key(&self) -> DiffKey
Source§impl KeyExt for ProgressBar
impl KeyExt for ProgressBar
Source§impl PartialEq for ProgressBar
impl PartialEq for ProgressBar
Source§impl ProgressBarThemePartialExt for ProgressBar
impl ProgressBarThemePartialExt for ProgressBar
fn color(self, color: impl Into<Color>) -> ProgressBar
fn background(self, background: impl Into<Color>) -> ProgressBar
fn progress_background( self, progress_background: impl Into<Color>, ) -> ProgressBar
fn height(self, height: impl Into<f32>) -> ProgressBar
impl StructuralPartialEq 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,
§impl<T> ComponentKey for Twhere
T: Component,
impl<T> ComponentKey for Twhere
T: Component,
fn default_key(&self) -> DiffKey
§impl<T> ComponentProps for T
impl<T> ComponentProps for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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