#[repr(C)]pub struct ProgressBar {
pub progressbar_state: ProgressBarState,
pub height: PixelValue,
pub bar_background: StyleBackgroundContentVec,
pub container_background: StyleBackgroundContentVec,
}Fields§
§progressbar_state: ProgressBarState§height: PixelValue§bar_background: StyleBackgroundContentVec§container_background: StyleBackgroundContentVecImplementations§
Source§impl ProgressBar
impl ProgressBar
pub fn create(percent_done: f32) -> Self
pub fn swap_with_default(&mut self) -> Self
pub fn set_container_background( &mut self, background: StyleBackgroundContentVec, )
pub fn with_container_background( self, background: StyleBackgroundContentVec, ) -> Self
pub fn set_bar_background(&mut self, background: StyleBackgroundContentVec)
pub fn with_bar_background(self, background: StyleBackgroundContentVec) -> Self
pub fn set_height(&mut self, height: PixelValue)
pub fn with_height(self, height: PixelValue) -> Self
pub fn dom(self) -> Dom
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 moreAuto 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