Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DioxusLabs/dioxus-components
/ normalize_range
Function
normalize_range
primitives/src/slider.rs:18–20 ·
view source on GitHub ↗
(range: Range<f64>)
Source
from the content-addressed store, hash-verified
16
}
17
18
fn normalize_range(range: Range<f64>) -> Range<f64> {
19
ordered_range(range.start, range.end)
20
}
21
22
fn snap_value(value: f64, step: f64) -> f64 {
23
(value / step).round() * step
Callers
1
RangeSlider
Function · 0.85
Calls
1
ordered_range
Function · 0.85
Tested by
no test coverage detected