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<'de> Deserialize<'de> for SliderClamping
impl<'de> Deserialize<'de> for SliderClamping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SliderClamping
impl Hash for SliderClamping
Source§impl PartialEq for SliderClamping
impl PartialEq for SliderClamping
Source§impl Serialize for SliderClamping
impl Serialize 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