/// Specify a function to be called regularly throughout the writing process.
/// Replaces all previously specified progress functions in this reader.
Specify a function to be called regularly throughout the writing process.
Replaces all previously specified progress functions in this reader.
Specify a function to be called regularly throughout the writing process . Replaces all previously specified progress functions in this reader .
pub fn on_progress<OnProgress>(self, on_progress: OnProgress) -> WriteImageWithOptions<'img, L, OnProgress>
        where OnProgress: FnMut(f64)
    {
        WriteImageWithOptions {
            on_progress,
            image: self.image,
            check_compatibility: self.check_compatibility,
            parallel: self.parallel
        }
    }
pub fn on_progress < OnProgress > ( self , on_progress : OnProgress ) -> WriteImageWithOptions < ' img , L , OnProgress > where OnProgress : FnMut ( f64 ) { WriteImageWithOptions { on_progress , image : self . image , check_compatibility : self . check_compatibility , parallel : self . parallel } }
Specify a function to be called regularly throughout the writing process.
Specify a function to be called regularly throughout the writing process .
self
on_progress
OnProgress