pub fn with_effect<F>(&self, effect: Effect, f: F)
    where
        F: FnOnce(&Printer),
    {
        self.backend.with_effect(effect, || f(self));
    }
/// Call the given closure with a modified printer
/// that will apply the given effect on prints.
Call the given closure with a modified printer
that will apply the given effect on prints.
Call the given closure with a modified printer that will apply the given effect on prints .
pub fn with_effect<F>(&self, effect: Effect, f: F)
    where
        F: FnOnce(&Printer),
    {
        self.backend.with_effect(effect, || f(self));
    }
pub fn with_effect < F > ( & self , effect : Effect , f : F ) where F : FnOnce ( & Printer ) , { self . backend . with_effect ( effect , | | f ( self ) ) ; }
Call the given closure with a modified printer
that will apply the given effect on prints.
Call the given closure with a modified printer that will apply the given effect on prints .
&self
effect
Effect
f
F
&self
effect
Effect
f
F