mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 23:30:04 -04:00
Replace emath::clamp with f32::clamp (new in rustc 1.50)
This commit is contained in:
@@ -159,6 +159,7 @@ where
|
||||
/// Returns `range.start()` if `x <= range.start()`,
|
||||
/// returns `range.end()` if `x >= range.end()`
|
||||
/// and returns `x` elsewhen.
|
||||
#[deprecated = "Use f32::clamp instead"]
|
||||
pub fn clamp<T>(x: T, range: RangeInclusive<T>) -> T
|
||||
where
|
||||
T: Copy + PartialOrd,
|
||||
|
||||
Reference in New Issue
Block a user