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 Constants§
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 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.