Trait cushy::widgets::slider::SliderValue
source · pub trait SliderValue:
Clone
+ PartialEq
+ Send
+ Debug
+ 'static {
type Value: Clone + Debug + PartialOrd + LinearInterpolate + PercentBetween + Send + 'static;
const RANGED: bool;
// Required methods
fn into_parts(self) -> (Self::Value, Option<Self::Value>);
fn from_parts(min_or_value: Self::Value, max: Option<Self::Value>) -> Self;
}
Expand description
A value that can be used in a Slider
widget.
Required Associated Types§
sourcetype Value: Clone + Debug + PartialOrd + LinearInterpolate + PercentBetween + Send + 'static
type Value: Clone + Debug + PartialOrd + LinearInterpolate + PercentBetween + Send + 'static
The component value for the slider.
Required Associated Constants§
Required Methods§
sourcefn into_parts(self) -> (Self::Value, Option<Self::Value>)
fn into_parts(self) -> (Self::Value, Option<Self::Value>)
Returns this value split into its start and end components.
sourcefn from_parts(min_or_value: Self::Value, max: Option<Self::Value>) -> Self
fn from_parts(min_or_value: Self::Value, max: Option<Self::Value>) -> Self
Constructs a value from its start and end components.
Object Safety§
This trait is not object safe.