use std::ops::RangeInclusive; use crate::{widgets::Label, *}; /// Combined into one function (rather than two) to make it easier /// for the borrow checker. type SliderGetSet<'a> = Box) -> f32>; pub struct Slider<'a> { get_set_value: SliderGetSet<'a>, range: RangeInclusive, // TODO: label: Option