// The loop_through wrapper, basically to provide the output destination reference.
The loop_through wrapper, basically to provide the output destination reference.
The loop_through wrapper basically to provide the output destination reference .
fn exec(&mut self) -> Result<()> {
        match self.get_opts().output.as_ref() {
            Some(file_path) => {
                let mut file = File::create(file_path)?;
                self.loop_through(&mut file)
            }
            None => {
                let mut stdout = io::stdout();
                self.loop_through(&mut stdout)
            }
        }
    }
fn exec ( & mut self ) -> Result < ( ) > { match self . get_opts ( ) . output . as_ref ( ) { Some ( file_path ) => { let mut file = File :: create ( file_path ) ? ; self . loop_through ( & mut file ) } None => { let mut stdout = io :: stdout ( ) ; self . loop_through ( & mut stdout ) } } }
The loop_through wrapper, basically to provide the output destination reference.
The loop_through wrapper basically to provide the output destination reference .
&mut self