swc_ecma_minifier::option

Trait MangleCache

source
pub trait MangleCache: Send + Sync {
    // Required methods
    fn vars_cache(&self, op: &mut dyn FnMut(&FxHashMap<Id, Atom>));
    fn props_cache(&self, op: &mut dyn FnMut(&FxHashMap<Atom, Atom>));
    fn update_vars_cache(&self, new_data: &FxHashMap<Id, Atom>);
    fn update_props_cache(&self, new_data: &FxHashMap<Atom, Atom>);
}

Required Methods§

source

fn vars_cache(&self, op: &mut dyn FnMut(&FxHashMap<Id, Atom>))

source

fn props_cache(&self, op: &mut dyn FnMut(&FxHashMap<Atom, Atom>))

source

fn update_vars_cache(&self, new_data: &FxHashMap<Id, Atom>)

source

fn update_props_cache(&self, new_data: &FxHashMap<Atom, Atom>)

Implementors§