pub struct Range {
pub id: String,
pub label: String,
pub value: f64,
pub min: f64,
pub max: f64,
pub step: Option<f64>,
pub decimals: usize,
pub suffix: String,
pub enabled: bool,
}Expand description
A Widget::Range: a slider over min to max, its value written
beside it with decimals and suffix ( %); told as
PanelEvent::Number.
Fields§
§id: String§label: String§value: f64§min: f64§max: f64§step: Option<f64>The values it stops at, every step from min.
decimals: usize§suffix: String§enabled: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Range
impl<'de> Deserialize<'de> for Range
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
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl Forget for Range
impl Freeze for Range
impl Move for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnsafeUnpin for Range
impl UnwindSafe for Range
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