pub struct RangeValues {
pub start: f64,
pub end: f64,
}Expand description
Object for representing range slider thumb values.
This object is passed into RangeSlider::values to set its values, and it
is emitted in RangeSlider::on_changed, RangeSlider::on_change_start, and
RangeSlider::on_change_end when the values change.
Fields§
§start: f64The value of the start thumb.
For LTR text direction, the start is the left thumb, and for RTL text direction, the start is the right thumb.
end: f64The value of the end thumb.
For LTR text direction, the end is the right thumb, and for RTL text direction, the end is the left thumb.
Implementations§
Source§impl RangeValues
impl RangeValues
Sourcepub const fn new(start: f64, end: f64) -> RangeValues
pub const fn new(start: f64, end: f64) -> RangeValues
Creates pair of start and end values.
Trait Implementations§
Source§impl Clone for RangeValues
impl Clone for RangeValues
impl Copy for RangeValues
Source§impl Debug for RangeValues
impl Debug for RangeValues
Source§impl PartialEq for RangeValues
impl PartialEq for RangeValues
impl StructuralPartialEq for RangeValues
Auto Trait Implementations§
impl Forget for RangeValues
impl Freeze for RangeValues
impl Move for RangeValues
impl RefUnwindSafe for RangeValues
impl Send for RangeValues
impl Sync for RangeValues
impl Unpin for RangeValues
impl UnsafeUnpin for RangeValues
impl UnwindSafe for RangeValues
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