pub struct PresetBank {
pub plugin_id: String,
/* private fields */
}Expand description
Banco de presets de un plugin.
Fields§
§plugin_id: StringImplementations§
Source§impl PresetBank
impl PresetBank
pub fn new(plugin_id: impl Into<String>) -> Self
pub fn add(&mut self, preset: Preset) -> usize
pub fn get(&self, index: usize) -> Option<&Preset>
pub fn active(&self) -> Option<&Preset>
pub fn set_active(&mut self, index: usize) -> bool
pub fn next(&mut self) -> Option<&Preset>
pub fn prev(&mut self) -> Option<&Preset>
pub fn count(&self) -> usize
pub fn all(&self) -> &[Preset]
pub fn user_presets(&self) -> impl Iterator<Item = &Preset>
pub fn factory_presets(&self) -> impl Iterator<Item = &Preset>
Auto Trait Implementations§
impl Freeze for PresetBank
impl RefUnwindSafe for PresetBank
impl Send for PresetBank
impl Sync for PresetBank
impl Unpin for PresetBank
impl UnsafeUnpin for PresetBank
impl UnwindSafe for PresetBank
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