Skip to main content

SliderBuilder

Trait SliderBuilder 

Source
pub trait SliderBuilder: Sized {
    // Required methods
    fn enabled<M>(self, v: impl IntoReactive<bool, M>) -> Self;
    fn range(self, r: RangeInclusive<f64>) -> Self;
    fn step(self, s: f64) -> Self;
}
Expand description

Builder methods of Slider, reachable through a Decorated (docs/api-style.md “Typed builders and erasure”): generic modifiers and typed ones chain in any order.

Required Methods§

Source

fn enabled<M>(self, v: impl IntoReactive<bool, M>) -> Self

Whether the slider takes input (default true); a constant or a reactive bool.

Source

fn range(self, r: RangeInclusive<f64>) -> Self

Source

fn step(self, s: f64) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<DecoratedInner: SliderBuilder + Piece> SliderBuilder for Decorated<DecoratedInner>

Source§

impl<S: Binding<f64>> SliderBuilder for Slider<S>

Day API ↩ Guides· daybrite.dev