pub struct NumericValue {
pub value: f64,
pub min: f64,
pub max: f64,
pub step: Option<f64>,
}Expand description
A numeric value with its range (sliders, spin buttons, progress).
Fields§
§value: f64The current value.
min: f64The smallest value.
max: f64The largest value.
step: Option<f64>The amount one arrow key changes the value by, if any.
Trait Implementations§
Source§impl Clone for NumericValue
impl Clone for NumericValue
Source§fn clone(&self) -> NumericValue
fn clone(&self) -> NumericValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NumericValue
Source§impl Debug for NumericValue
impl Debug for NumericValue
Source§impl PartialEq for NumericValue
impl PartialEq for NumericValue
impl StructuralPartialEq for NumericValue
Auto Trait Implementations§
impl Freeze for NumericValue
impl RefUnwindSafe for NumericValue
impl Send for NumericValue
impl Sync for NumericValue
impl Unpin for NumericValue
impl UnsafeUnpin for NumericValue
impl UnwindSafe for NumericValue
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