pub struct Number<S: Scalar> {
pub label: String,
pub value: f64,
pub unit: Unit,
pub range: Option<[f64; 2]>,
pub step: f64,
pub handle: Option<Track<S>>,
}Expand description
A number field.
Fields§
§label: String§value: f64§unit: Unit§range: Option<[f64; 2]>What a slider offers, not what is valid.
step: f64§handle: Option<Track<S>>The handle to drag it by, drawn by the editor.
Implementations§
Trait Implementations§
impl<S: PartialEq + Scalar> StructuralPartialEq for Number<S>
Auto Trait Implementations§
impl<S> Freeze for Number<S>where
S: Freeze,
impl<S> RefUnwindSafe for Number<S>where
S: RefUnwindSafe,
impl<S> Send for Number<S>
impl<S> Sync for Number<S>
impl<S> Unpin for Number<S>where
S: Unpin,
impl<S> UnsafeUnpin for Number<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Number<S>where
S: UnwindSafe,
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