[−][src]Struct atm::storage::PartitionPathGenerator
Path generator for storage backends that support partitioned output schemes
Partitioning files by path in the output storage backend can be useful if not all files can be written to the same directory/file. For example, most modern filesystem don't perform as well with more than 4K files per directory. Partitioning files into subdirectories with a depth (number of partition branches) and partition length (number of notes per partition) can ensure no more than some threshold files are written to a directory (see: gen_partition_length).
Implementations
impl PartitionPathGenerator
[src]
pub fn new(
num_notes: u32,
melody_length: u32,
max_files: u32,
partition_depth: u32
) -> Result<Self, PartitionPathGeneratorError>
[src]
num_notes: u32,
melody_length: u32,
max_files: u32,
partition_depth: u32
) -> Result<Self, PartitionPathGeneratorError>
Create new PartitionPathGenerator
instance
Trait Implementations
impl PathGenerator for PartitionPathGenerator
[src]
fn gen_path_for_file(
&self,
mfile: &MIDIFile
) -> Result<String, PathGeneratorError>
[src]
&self,
mfile: &MIDIFile
) -> Result<String, PathGeneratorError>
Auto Trait Implementations
impl RefUnwindSafe for PartitionPathGenerator
impl Send for PartitionPathGenerator
impl Sync for PartitionPathGenerator
impl Unpin for PartitionPathGenerator
impl UnwindSafe for PartitionPathGenerator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,