Struct egui::widgets::slider::SliderSpec
source · struct SliderSpec {
logarithmic: bool,
smallest_positive: f64,
largest_finite: f64,
}
Fields§
§logarithmic: bool
§smallest_positive: f64
For logarithmic sliders, the smallest positive value we are interested in. 1 for integer sliders, maybe 1e-6 for others.
largest_finite: f64
For 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SliderSpec
impl RefUnwindSafe for SliderSpec
impl Send for SliderSpec
impl Sync for SliderSpec
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)