pub struct ProgressProps {
pub value: Option<f32>,
pub max: f32,
pub size: ProgressSize,
pub variant: ProgressVariant,
pub color: Option<Color32>,
pub radius: Option<f32>,
pub duration_ms: u32,
pub high_contrast: bool,
}Fields§
§value: Option<f32>§max: f32§size: ProgressSize§variant: ProgressVariant§color: Option<Color32>§radius: Option<f32>§duration_ms: u32§high_contrast: boolImplementations§
Source§impl ProgressProps
impl ProgressProps
pub fn new(value: Option<f32>) -> Self
pub fn max(self, max: f32) -> Self
pub fn size(self, size: ProgressSize) -> Self
pub fn variant(self, variant: ProgressVariant) -> Self
pub fn color(self, color: Color32) -> Self
pub fn radius(self, radius: f32) -> Self
pub fn duration_ms(self, duration_ms: u32) -> Self
pub fn high_contrast(self, hc: bool) -> Self
Trait Implementations§
Source§impl Clone for ProgressProps
impl Clone for ProgressProps
Source§fn clone(&self) -> ProgressProps
fn clone(&self) -> ProgressProps
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 ProgressProps
impl RefUnwindSafe for ProgressProps
impl Send for ProgressProps
impl Sync for ProgressProps
impl Unpin for ProgressProps
impl UnsafeUnpin for ProgressProps
impl UnwindSafe for ProgressProps
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