pub fn sample(
        &mut self,
        filename: &'static str,
        line_length: LineLength,
        sample_length: SampleLength,
        character_generator: fn() -> char,
    ) {
        let handle = thread::spawn(move || {
            build_sample(
                File::create(filename).unwrap(),
                line_length,
                sample_length,
                character_generator,
            )
        });
        self.samples.push_back(Sample { handle, filename });
    }
/// Builds a sample in a new thread.
Builds a sample in a new thread.
Builds a sample in a new thread .
pub fn sample(
        &mut self,
        filename: &'static str,
        line_length: LineLength,
        sample_length: SampleLength,
        character_generator: fn() -> char,
    ) {
        let handle = thread::spawn(move || {
            build_sample(
                File::create(filename).unwrap(),
                line_length,
                sample_length,
                character_generator,
            )
        });
        self.samples.push_back(Sample { handle, filename });
    }
pub fn sample ( & mut self , filename : & ' static str , line_length : LineLength , sample_length : SampleLength , character_generator : fn ( ) -> char , ) { let handle = thread :: spawn ( move | | { build_sample ( File :: create ( filename ) . unwrap ( ) , line_length , sample_length , character_generator , ) } ) ; self . samples . push_back ( Sample { handle , filename } ) ; }
Builds a sample in a new thread.
Builds a sample in a new thread .
&mut self
filename
&'static str
line_length
LineLength
sample_length
SampleLength
character_generator
fn() -> char
&mut self
filename
&'static str
line_length
LineLength
sample_length
SampleLength
character_generator
fn() -> char