pub struct FileSplitToDirectoryBuilder {
pub path: Option<PathBuf>,
pub chunk: NonZeroUsize,
pub sort_cmp: fn(&DirEntry, &DirEntry) -> Ordering,
pub directory_name: fn(usize) -> String,
}Fields§
§path: Option<PathBuf>§chunk: NonZeroUsize§sort_cmp: fn(&DirEntry, &DirEntry) -> Ordering§directory_name: fn(usize) -> StringImplementations§
Source§impl FileSplitToDirectoryBuilder
impl FileSplitToDirectoryBuilder
pub fn default_sort_cmp(a: &DirEntry, b: &DirEntry) -> Ordering
pub fn default_directory_name(i: usize) -> String
pub fn with_path(self, path: PathBuf) -> Self
pub fn with_chunk(self, chunk: NonZeroUsize) -> Self
pub fn with_sort_cmp( self, sort_cmp: fn(&DirEntry, &DirEntry) -> Ordering, ) -> Self
pub fn with_directory_name(self, directory_name: fn(usize) -> String) -> Self
pub fn build(&self) -> Result<FileSplitToDirectory, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileSplitToDirectoryBuilder
impl RefUnwindSafe for FileSplitToDirectoryBuilder
impl Send for FileSplitToDirectoryBuilder
impl Sync for FileSplitToDirectoryBuilder
impl Unpin for FileSplitToDirectoryBuilder
impl UnsafeUnpin for FileSplitToDirectoryBuilder
impl UnwindSafe for FileSplitToDirectoryBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more