pub struct SettingState {
pub state: String,
pub measure: Measure,
pub value: f64,
pub min: Option<f64>,
pub max: Option<f64>,
}Expand description
A value a user sets, as an editor shows it: where the state has it.
Fields§
§state: String§measure: Measure§value: f64The state’s value, or — not given one — zero.
min: Option<f64>§max: Option<f64>Trait Implementations§
Source§impl Clone for SettingState
impl Clone for SettingState
Source§fn clone(&self) -> SettingState
fn clone(&self) -> SettingState
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 moreSource§impl Debug for SettingState
impl Debug for SettingState
Source§impl PartialEq for SettingState
impl PartialEq for SettingState
Source§impl Serialize for SettingState
impl Serialize for SettingState
impl StructuralPartialEq for SettingState
Auto Trait Implementations§
impl Freeze for SettingState
impl RefUnwindSafe for SettingState
impl Send for SettingState
impl Sync for SettingState
impl Unpin for SettingState
impl UnsafeUnpin for SettingState
impl UnwindSafe for SettingState
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