pub struct LoadedPreset {
pub params: Vec<f32>,
pub clamped: Vec<(usize, usize, usize)>,
pub legacy_selectors: bool,
}Expand description
A preset that passed Preset::check, with its selectors put back.
Not a bare Vec<f32>, because two things about the load are worth saying
out loud in the bottom bar and neither is an error: a bank that has shrunk
since the preset was written no longer holds the entry it names, and a
version 1 preset has no positions at all and is only right if nothing has
been added to the bank since.
Fields§
§params: Vec<f32>The panel to apply, selectors already resolved.
clamped: Vec<(usize, usize, usize)>Selectors that could not be restored exactly, as
(parameter, wanted, given).
legacy_selectors: boolWhether this preset predates positional selectors.
Trait Implementations§
Source§impl Clone for LoadedPreset
impl Clone for LoadedPreset
Source§fn clone(&self) -> LoadedPreset
fn clone(&self) -> LoadedPreset
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 LoadedPreset
impl Debug for LoadedPreset
Source§impl PartialEq for LoadedPreset
impl PartialEq for LoadedPreset
impl StructuralPartialEq for LoadedPreset
Auto Trait Implementations§
impl Freeze for LoadedPreset
impl RefUnwindSafe for LoadedPreset
impl Send for LoadedPreset
impl Sync for LoadedPreset
impl Unpin for LoadedPreset
impl UnsafeUnpin for LoadedPreset
impl UnwindSafe for LoadedPreset
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