pub struct PresetState {
pub button_active: [bool; 6],
pub cycle_index: [u8; 6],
pub encoder_values: [u8; 2],
}Expand description
Runtime state for a single preset (not persisted across power cycles).
Fields§
§cycle_index: [u8; 6]§encoder_values: [u8; 2]Implementations§
Source§impl PresetState
impl PresetState
Sourcepub fn from_defaults(preset: &Preset) -> Self
pub fn from_defaults(preset: &Preset) -> Self
Create a PresetState from a preset’s declared defaults.
Trait Implementations§
Source§impl Clone for PresetState
impl Clone for PresetState
Source§fn clone(&self) -> PresetState
fn clone(&self) -> PresetState
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 PresetState
impl Debug for PresetState
Source§impl Default for PresetState
impl Default for PresetState
impl Eq for PresetState
Source§impl PartialEq for PresetState
impl PartialEq for PresetState
Source§fn eq(&self, other: &PresetState) -> bool
fn eq(&self, other: &PresetState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresetState
Auto Trait Implementations§
impl Freeze for PresetState
impl RefUnwindSafe for PresetState
impl Send for PresetState
impl Sync for PresetState
impl Unpin for PresetState
impl UnsafeUnpin for PresetState
impl UnwindSafe for PresetState
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