pub struct SliderInterval { /* private fields */ }Implementations§
Source§impl SliderInterval
impl SliderInterval
pub fn from_node(node: &Node) -> Self
pub fn from_values(node: &Node, lower: f64, upper: f64) -> Self
pub fn values(self) -> [f64; 2]
pub fn fractions(self) -> [f64; 2]
pub fn nearest_handle(self, fraction: f64) -> usize
pub fn preview_fractions(self, handle: usize, fraction: f64) -> [f64; 2]
pub fn apply(self, handle: usize, action: RangeAction) -> Option<[f64; 2]>
Trait Implementations§
Source§impl Clone for SliderInterval
impl Clone for SliderInterval
impl Copy for SliderInterval
Auto Trait Implementations§
impl Forget for SliderInterval
impl Freeze for SliderInterval
impl Move for SliderInterval
impl RefUnwindSafe for SliderInterval
impl Send for SliderInterval
impl Sync for SliderInterval
impl Unpin for SliderInterval
impl UnsafeUnpin for SliderInterval
impl UnwindSafe for SliderInterval
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