#[non_exhaustive]pub struct SliderConfig {
pub label: AnyView,
pub min_value_label: AnyView,
pub max_value_label: AnyView,
pub range: RangeInclusive<f64>,
pub value: Binding<f64>,
}Expand description
Configuration for the Slider widget.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.label: AnyViewThe label to display for the slider.
min_value_label: AnyViewThe label for the minimum value of the slider.
max_value_label: AnyViewThe label for the maximum value of the slider.
range: RangeInclusive<f64>The range of values the slider can take.
value: Binding<f64>The binding to the current value of the slider.
Trait Implementations§
Source§impl Debug for SliderConfig
impl Debug for SliderConfig
Source§impl From<SliderConfig> for Slider
impl From<SliderConfig> for Slider
Source§fn from(value: SliderConfig) -> Slider
fn from(value: SliderConfig) -> Slider
Converts to this type from the input type.
Source§impl NativeView for SliderConfig
impl NativeView for SliderConfig
Source§fn stretch_axis(&self) -> StretchAxis
fn stretch_axis(&self) -> StretchAxis
Which axis (or axes) this view stretches to fill available space.
Source§impl ViewConfiguration for SliderConfig
impl ViewConfiguration for SliderConfig
Source§fn render(self) -> <SliderConfig as ViewConfiguration>::View
fn render(self) -> <SliderConfig as ViewConfiguration>::View
Renders this configuration into a view.
Auto Trait Implementations§
impl Freeze for SliderConfig
impl !RefUnwindSafe for SliderConfig
impl !Send for SliderConfig
impl !Sync for SliderConfig
impl Unpin for SliderConfig
impl !UnwindSafe for SliderConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more