pub struct DirtSampleMap {
pub bank_to_files: BTreeMap<String, Vec<String>>,
pub file_index: HashMap<(String, String), usize>,
}
Expand description
Holds sorted sample info for each Dirt-Samples bank, and provides lookup by name or index.
Fields§
§bank_to_files: BTreeMap<String, Vec<String>>
bank name (folder) -> sorted list of filenames
file_index: HashMap<(String, String), usize>
(bank, filename) -> index
Implementations§
Trait Implementations§
Source§impl Clone for DirtSampleMap
impl Clone for DirtSampleMap
Source§fn clone(&self) -> DirtSampleMap
fn clone(&self) -> DirtSampleMap
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DirtSampleMap
impl RefUnwindSafe for DirtSampleMap
impl Send for DirtSampleMap
impl Sync for DirtSampleMap
impl Unpin for DirtSampleMap
impl UnwindSafe for DirtSampleMap
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