Skip to main content

valid_step

Function valid_step 

Source
pub fn valid_step<T: Value>(step: T, range: &RangeInclusive<T>) -> Option<T>
Available on crate feature slider only.
Expand description

Returns step if it is positive, capped at the width of range.