pub struct Props {
pub value: f64,
pub min: f64,
pub max: f64,
pub low: Option<f64>,
pub high: Option<f64>,
pub optimum: Option<f64>,
pub label: String,
}Expand description
Meter rendering properties
Fields§
§value: f64Current value of the meter
min: f64Minimum value (default 0.0)
max: f64Maximum value (default 100.0)
low: Option<f64>Threshold below which the zone is “suboptimum” (warning)
high: Option<f64>Threshold above which the zone is “suboptimum” (warning)
optimum: Option<f64>The ideal value; if present, determines which side is “good”
label: StringLabel for the meter (accessibility)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Props
impl RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl UnsafeUnpin for Props
impl UnwindSafe for Props
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