#[non_exhaustive]pub struct ProgressBarMetrics {
pub height: Option<f32>,
pub min_width: Option<f32>,
}Expand description
Progress bar metrics.
Defines bar height and minimum width for determinate/indeterminate bars. All values are in logical pixels.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.height: Option<f32>Bar thickness in logical pixels.
min_width: Option<f32>Minimum bar width in logical pixels.
Implementations§
Source§impl ProgressBarMetrics
impl ProgressBarMetrics
Trait Implementations§
Source§impl Clone for ProgressBarMetrics
impl Clone for ProgressBarMetrics
Source§fn clone(&self) -> ProgressBarMetrics
fn clone(&self) -> ProgressBarMetrics
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 ProgressBarMetrics
impl Debug for ProgressBarMetrics
Source§impl Default for ProgressBarMetrics
impl Default for ProgressBarMetrics
Source§fn default() -> ProgressBarMetrics
fn default() -> ProgressBarMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProgressBarMetricswhere
ProgressBarMetrics: Default,
impl<'de> Deserialize<'de> for ProgressBarMetricswhere
ProgressBarMetrics: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProgressBarMetrics
impl PartialEq for ProgressBarMetrics
Source§impl Serialize for ProgressBarMetrics
impl Serialize for ProgressBarMetrics
impl StructuralPartialEq for ProgressBarMetrics
Auto Trait Implementations§
impl Freeze for ProgressBarMetrics
impl RefUnwindSafe for ProgressBarMetrics
impl Send for ProgressBarMetrics
impl Sync for ProgressBarMetrics
impl Unpin for ProgressBarMetrics
impl UnsafeUnpin for ProgressBarMetrics
impl UnwindSafe for ProgressBarMetrics
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