pub struct GaugeResponse {
pub response: Response,
pub ratio: f64,
}Expand description
Response from Context::gauge and
Context::line_gauge.
Wraps the row-level Response plus the rendered ratio so callers can
confirm the displayed value (clamped to 0.0..=1.0). Implements
Deref<Target = Response> so r.hovered etc. work directly.
Note: ratio was widened from f32 to f64 in v0.20.0 so the gauge
family aligns with animate_value, chart APIs, and progress_bar.
Fields§
§response: ResponseThe row-level interaction response.
ratio: f64The clamped ratio that was rendered (always 0.0..=1.0).
Trait Implementations§
Source§impl Clone for GaugeResponse
impl Clone for GaugeResponse
Source§fn clone(&self) -> GaugeResponse
fn clone(&self) -> GaugeResponse
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 GaugeResponse
impl Debug for GaugeResponse
Source§impl Default for GaugeResponse
impl Default for GaugeResponse
Source§fn default() -> GaugeResponse
fn default() -> GaugeResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GaugeResponse
impl RefUnwindSafe for GaugeResponse
impl Send for GaugeResponse
impl Sync for GaugeResponse
impl Unpin for GaugeResponse
impl UnsafeUnpin for GaugeResponse
impl UnwindSafe for GaugeResponse
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