pub struct SliderSpec {
pub logarithmic: bool,
pub smallest_positive: f64,
pub largest_finite: f64,
}Expand description
How values are spread along a slider’s rail.
Fields§
§logarithmic: boolGive the small values as much of the rail as the large ones.
smallest_positive: f64For logarithmic sliders, the smallest positive value we are interested in. 1 for integer sliders, maybe 1e-6 for others.
largest_finite: f64For logarithmic sliders, the largest positive value we are interested in
before the slider switches to INFINITY, if that is the higher end.
Default: INFINITY.
Trait Implementations§
Source§impl Clone for SliderSpec
impl Clone for SliderSpec
Source§fn clone(&self) -> SliderSpec
fn clone(&self) -> SliderSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SliderSpec
impl Debug for SliderSpec
Source§impl Default for SliderSpec
impl Default for SliderSpec
Source§fn default() -> SliderSpec
fn default() -> SliderSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for SliderSpec
impl Freeze for SliderSpec
impl Move for SliderSpec
impl RefUnwindSafe for SliderSpec
impl Send for SliderSpec
impl Sync for SliderSpec
impl Unpin for SliderSpec
impl UnsafeUnpin for SliderSpec
impl UnwindSafe for SliderSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more