pub enum NumericRange {
None,
Explicit {
min: f64,
max: f64,
},
DefaultSlider,
}Expand description
Range configuration for numeric sliders and drags.
Variants§
None
No explicit range (only valid for input/drag widgets).
Explicit
Explicit minimum and maximum values (stored as f64 and converted per type).
DefaultSlider
Use the default half-range for the numeric type when a slider is selected.
Trait Implementations§
Source§impl Clone for NumericRange
impl Clone for NumericRange
Source§fn clone(&self) -> NumericRange
fn clone(&self) -> NumericRange
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 NumericRange
impl Debug for NumericRange
impl Copy for NumericRange
Auto Trait Implementations§
impl Freeze for NumericRange
impl RefUnwindSafe for NumericRange
impl Send for NumericRange
impl Sync for NumericRange
impl Unpin for NumericRange
impl UnwindSafe for NumericRange
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