pub struct NumFilesWithRatio { /* private fields */ }Implementations§
Source§impl NumFilesWithRatio
impl NumFilesWithRatio
Sourcepub fn new(
num_files: NonZeroU64,
file_to_dir_ratio: NonZeroU64,
) -> Result<Self, NumFilesWithRatioError>
pub fn new( num_files: NonZeroU64, file_to_dir_ratio: NonZeroU64, ) -> Result<Self, NumFilesWithRatioError>
§Errors
The file to directory ratio cannot be larger than the number of files to generate since it is impossible to satisfy that condition.
pub fn from_num_files(num_files: NonZeroU64) -> Self
Trait Implementations§
Source§impl Clone for NumFilesWithRatio
impl Clone for NumFilesWithRatio
Source§fn clone(&self) -> NumFilesWithRatio
fn clone(&self) -> NumFilesWithRatio
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumFilesWithRatio
impl Debug for NumFilesWithRatio
Source§impl Hash for NumFilesWithRatio
impl Hash for NumFilesWithRatio
Source§impl PartialEq for NumFilesWithRatio
impl PartialEq for NumFilesWithRatio
impl Copy for NumFilesWithRatio
impl Eq for NumFilesWithRatio
impl StructuralPartialEq for NumFilesWithRatio
Auto Trait Implementations§
impl Freeze for NumFilesWithRatio
impl RefUnwindSafe for NumFilesWithRatio
impl Send for NumFilesWithRatio
impl Sync for NumFilesWithRatio
impl Unpin for NumFilesWithRatio
impl UnwindSafe for NumFilesWithRatio
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