#[repr(align(64))]pub struct PercentageGauge { /* private fields */ }
Expand description
Percentage gauge (0.0 to 100.0)
Implementations§
Source§impl PercentageGauge
impl PercentageGauge
Sourcepub fn set_percentage(&self, percentage: f64)
pub fn set_percentage(&self, percentage: f64)
Set percentage (automatically clamped to 0.0-100.0)
Sourcepub fn get_percentage(&self) -> f64
pub fn get_percentage(&self) -> f64
Get percentage
Sourcepub fn add_percentage(&self, delta: f64)
pub fn add_percentage(&self, delta: f64)
Add percentage (clamped to valid range)
Sourcepub fn stats(&self) -> GaugeStats
pub fn stats(&self) -> GaugeStats
Get gauge statistics
Trait Implementations§
Source§impl Default for PercentageGauge
impl Default for PercentageGauge
Auto Trait Implementations§
impl !Freeze for PercentageGauge
impl RefUnwindSafe for PercentageGauge
impl Send for PercentageGauge
impl Sync for PercentageGauge
impl Unpin for PercentageGauge
impl UnwindSafe for PercentageGauge
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