pub fn notify<F>(&mut self, cb: F) -> &mut CheckoutBuilder<'cb>
    where
        F: FnMut(
                CheckoutNotificationType,
                Option<&Path>,
                Option<DiffFile<'_>>,
                Option<DiffFile<'_>>,
                Option<DiffFile<'_>>,
            ) -> bool
            + 'cb,
    {
        self.notify = Some(Box::new(cb) as Box<Notify<'cb>>);
        self
    }
/// Set a callback to receive checkout notifications.
///
/// Callbacks are invoked prior to modifying any files on disk.
/// Returning `false` from the callback will cancel the checkout.
Set a callback to receive checkout notifications.
Callbacks are invoked prior to modifying any files on disk.
Returning `false` from the callback will cancel the checkout.
Set a callback to receive checkout notifications . Callbacks are invoked prior to modifying any files on disk . Returning ` false ` from the callback will cancel the checkout .
pub fn notify<F>(&mut self, cb: F) -> &mut CheckoutBuilder<'cb>
    where
        F: FnMut(
                CheckoutNotificationType,
                Option<&Path>,
                Option<DiffFile<'_>>,
                Option<DiffFile<'_>>,
                Option<DiffFile<'_>>,
            ) -> bool
            + 'cb,
    {
        self.notify = Some(Box::new(cb) as Box<Notify<'cb>>);
        self
    }
pub fn notify < F > ( & mut self , cb : F ) -> & mut CheckoutBuilder < ' cb > where F : FnMut ( CheckoutNotificationType , Option < & Path > , Option < DiffFile < ' _ > > , Option < DiffFile < ' _ > > , Option < DiffFile < ' _ > > , ) -> bool + ' cb , { self . notify = Some ( Box :: new ( cb ) as Box < Notify < ' cb > > ) ; self }
Set a callback to receive checkout notifications.
Set a callback to receive checkout notifications .
&mut self
cb
F
&mut self
cb
F