pub struct TreeShakeResults {
pub kept_classes: HashSet<String>,
pub removed_classes: HashSet<String>,
pub original_size: usize,
pub optimized_size: usize,
pub reduction_percentage: f64,
pub stats: TreeShakeStats,
}Expand description
Results of tree-shaking operation
Fields§
§kept_classes: HashSet<String>Classes that were kept
removed_classes: HashSet<String>Classes that were removed
original_size: usizeOriginal CSS size
optimized_size: usizeOptimized CSS size
reduction_percentage: f64Size reduction percentage
stats: TreeShakeStatsStatistics
Trait Implementations§
Source§impl Clone for TreeShakeResults
impl Clone for TreeShakeResults
Source§fn clone(&self) -> TreeShakeResults
fn clone(&self) -> TreeShakeResults
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TreeShakeResults
impl RefUnwindSafe for TreeShakeResults
impl Send for TreeShakeResults
impl Sync for TreeShakeResults
impl Unpin for TreeShakeResults
impl UnwindSafe for TreeShakeResults
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