pub struct FloatingPointRange {
pub min: f64,
pub max: f64,
pub step: f64,
}Expand description
Floating point range constraints for parameters
Fields§
§min: f64Minimum allowed value (inclusive)
max: f64Maximum allowed value (inclusive)
step: f64Step size for value changes (0 = any step allowed)
Implementations§
Trait Implementations§
Source§impl Clone for FloatingPointRange
impl Clone for FloatingPointRange
Source§fn clone(&self) -> FloatingPointRange
fn clone(&self) -> FloatingPointRange
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 FloatingPointRange
impl Debug for FloatingPointRange
Source§impl Default for FloatingPointRange
impl Default for FloatingPointRange
Source§fn default() -> FloatingPointRange
fn default() -> FloatingPointRange
Returns the “default value” for a type. Read more
impl Copy for FloatingPointRange
Auto Trait Implementations§
impl Freeze for FloatingPointRange
impl RefUnwindSafe for FloatingPointRange
impl Send for FloatingPointRange
impl Sync for FloatingPointRange
impl Unpin for FloatingPointRange
impl UnsafeUnpin for FloatingPointRange
impl UnwindSafe for FloatingPointRange
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