pub enum LevelConfig {
Linear {
min: u16,
max: u16,
step: u16,
},
NonLinear {
start_index: u8,
level_count: u8,
values: Vec<u16>,
},
}Expand description
The level configuration of an illumination control.
A control exposes its selectable levels either as a linear min/max/step
range or as an explicit list of non-linear values.
Variants§
Linear
Evenly spaced levels from min to max (inclusive) in steps of step.
Fields
NonLinear
An explicit list of level values.
Trait Implementations§
Source§impl Clone for LevelConfig
impl Clone for LevelConfig
Source§fn clone(&self) -> LevelConfig
fn clone(&self) -> LevelConfig
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 LevelConfig
impl Debug for LevelConfig
impl Eq for LevelConfig
Source§impl Hash for LevelConfig
impl Hash for LevelConfig
Source§impl PartialEq for LevelConfig
impl PartialEq for LevelConfig
impl StructuralPartialEq for LevelConfig
Auto Trait Implementations§
impl Freeze for LevelConfig
impl RefUnwindSafe for LevelConfig
impl Send for LevelConfig
impl Sync for LevelConfig
impl Unpin for LevelConfig
impl UnsafeUnpin for LevelConfig
impl UnwindSafe for LevelConfig
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