Enum egui::widgets::slider::SliderClamping
source · pub enum SliderClamping {
Never,
Edits,
Always,
}
Expand description
Specifies how values in a Slider
are clamped.
Variants§
Never
Values are not clamped.
This means editing the value with the keyboard, or dragging the number next to the slider will always work.
The actual slider part is always clamped though.
Edits
Users cannot enter new values that are outside the range.
Existing values remain intact though.
Always
Always clamp values, even existing ones.
Trait Implementations§
source§impl Clone for SliderClamping
impl Clone for SliderClamping
source§fn clone(&self) -> SliderClamping
fn clone(&self) -> SliderClamping
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 moresource§impl Debug for SliderClamping
impl Debug for SliderClamping
source§impl Default for SliderClamping
impl Default for SliderClamping
source§fn default() -> SliderClamping
fn default() -> SliderClamping
Returns the “default value” for a type. Read more
source§impl Hash for SliderClamping
impl Hash for SliderClamping
source§impl PartialEq for SliderClamping
impl PartialEq for SliderClamping
impl Copy for SliderClamping
impl Eq for SliderClamping
impl StructuralPartialEq for SliderClamping
Auto Trait Implementations§
impl Freeze for SliderClamping
impl RefUnwindSafe for SliderClamping
impl Send for SliderClamping
impl Sync for SliderClamping
impl Unpin for SliderClamping
impl UnwindSafe for SliderClamping
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
)