#[non_exhaustive]pub struct Preset { /* private fields */ }Expand description
Represents a preset in the SoundFont.
Implementations§
Source§impl Preset
impl Preset
Sourcepub fn get_patch_number(&self) -> i32
pub fn get_patch_number(&self) -> i32
Gets the patch number of the preset.
Sourcepub fn get_bank_number(&self) -> i32
pub fn get_bank_number(&self) -> i32
Gets the bank number of the preset.
Sourcepub fn get_library(&self) -> i32
pub fn get_library(&self) -> i32
Gets the library info.
Sourcepub fn get_morphology(&self) -> i32
pub fn get_morphology(&self) -> i32
Gets the morphology info.
Sourcepub fn get_regions(&self) -> &[PresetRegion]
pub fn get_regions(&self) -> &[PresetRegion]
Gets the regions of the preset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Preset
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnwindSafe for Preset
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