#[repr(C)]pub struct SliderState {
pub value: f32,
pub min: f32,
pub max: f32,
}Expand description
State of a Slider: the current value and the allowed [min, max] range.
Fields§
§value: f32The current value (always within [min, max]).
min: f32Minimum allowed value (inclusive) — thumb at the far left.
max: f32Maximum allowed value (inclusive) — thumb at the far right.
Trait Implementations§
Source§impl Clone for SliderState
impl Clone for SliderState
Source§fn clone(&self) -> SliderState
fn clone(&self) -> SliderState
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 moreimpl Copy for SliderState
Source§impl Debug for SliderState
impl Debug for SliderState
Source§impl Default for SliderState
impl Default for SliderState
Source§impl PartialEq for SliderState
impl PartialEq for SliderState
impl StructuralPartialEq for SliderState
Auto Trait Implementations§
impl Freeze for SliderState
impl RefUnwindSafe for SliderState
impl Send for SliderState
impl Sync for SliderState
impl Unpin for SliderState
impl UnsafeUnpin for SliderState
impl UnwindSafe for SliderState
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§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