pub fn make(&self, i: usize) -> Option<String> {
        let prefix = self.prefix.clone();
        let suffix1 = match (self.use_numeric_suffix, self.suffix_length) {
            (true, 0) => Some(num_prefix(i)),
            (false, 0) => str_prefix(i),
            (true, width) => num_prefix_fixed_width(i, width),
            (false, width) => str_prefix_fixed_width(i, width),
        }?;
        let suffix2 = &self.additional_suffix;
        Some(prefix + &suffix1 + suffix2)
    }
/// Construct the filename for the specified element of the output collection of files.
///
/// For an explanation of the parameters, see the struct documentation.
///
/// If `suffix_length` has been set to a positive integer and `i`
/// is greater than or equal to the number of strings that can be
/// represented within that length, then this returns `None`. For
/// example:
///
/// ```rust,ignore
/// use crate::filenames::FilenameFactory;
///
/// let prefix = String::new();
/// let suffix = String::new();
/// let width = 1;
/// let use_numeric_suffix = true;
/// let factory = FilenameFactory::new(prefix, suffix, width, use_numeric_suffix);
///
/// assert_eq!(factory.make(10), None);
/// ```
Construct the filename for the specified element of the output collection of files.
For an explanation of the parameters, see the struct documentation.








Construct the filename for the specified element of the output collection of files . For an explanation of the parameters see the struct documentation .
pub fn make(&self, i: usize) -> Option<String> {
        let prefix = self.prefix.clone();
        let suffix1 = match (self.use_numeric_suffix, self.suffix_length) {
            (true, 0) => Some(num_prefix(i)),
            (false, 0) => str_prefix(i),
            (true, width) => num_prefix_fixed_width(i, width),
            (false, width) => str_prefix_fixed_width(i, width),
        }?;
        let suffix2 = &self.additional_suffix;
        Some(prefix + &suffix1 + suffix2)
    }
pub fn make ( & self , i : usize ) -> Option < String > { let prefix = self . prefix . clone ( ) ; let suffix1 = match ( self . use_numeric_suffix , self . suffix_length ) { ( true , 0 ) => Some ( num_prefix ( i ) ) , ( false , 0 ) => str_prefix ( i ) , ( true , width ) => num_prefix_fixed_width ( i , width ) , ( false , width ) => str_prefix_fixed_width ( i , width ) , } ? ; let suffix2 = & self . additional_suffix ; Some ( prefix + & suffix1 + suffix2 ) }
Construct the filename for the specified element of the output collection of files.
Construct the filename for the specified element of the output collection of files .
&self
i
usize
&self
i
usize