pub struct MinifyContext {
pub nodes: HashSet<u32>,
pub cache: Option<HashMap<u32, usize>>,
pub renderer: Option<NodeRenderer>,
pub data: HashMap<&'static str, Box<dyn Any>>,
}Expand description
state of a minification (context)
Fields§
§nodes: HashSet<u32>the minified nodes
cache: Option<HashMap<u32, usize>>rendered sizes of the nodes (options.cache)
renderer: Option<NodeRenderer>renderer of the rule sizes
data: HashMap<&'static str, Box<dyn Any>>state of the features (context.declarations, context.lookup, …), by key
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MinifyContext
impl !RefUnwindSafe for MinifyContext
impl !Send for MinifyContext
impl !Sync for MinifyContext
impl !UnwindSafe for MinifyContext
impl Forget for MinifyContext
impl Move for MinifyContext
impl Unpin for MinifyContext
impl UnsafeUnpin for MinifyContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more