In this code:
ui.label("Some text");
ui.add(
Slider::new(value, 0..=100)
.logarithmic(false)
.clamp_to_range(true)
.smart_aim(true)
.orientation(orientation)
.text("f64 demo slider"),
Under this code
Slider::new(value, 0..=100)
the value
requires the data type Numeric
.
How do I declare a variable with a Numeric
data type?
For f32
data type I type let value = 10f32
. But how would I do it for Numeric?
I am looking through this but can't seem to find a way to declare a Numeric
data type.