pub struct StyleProcessor { /* private fields */ }Expand description
CSS 处理器,用于处理和优化 CSS 代码
Implementations§
Source§impl StyleProcessor
impl StyleProcessor
Sourcepub fn with_minify(self, minify: bool) -> Self
pub fn with_minify(self, minify: bool) -> Self
设置是否启用压缩
Sourcepub fn with_remove_unused(self, remove_unused: bool) -> Self
pub fn with_remove_unused(self, remove_unused: bool) -> Self
设置是否移除未使用的样式
Sourcepub fn with_preprocessor(self, preprocessor: PreprocessorType) -> Self
pub fn with_preprocessor(self, preprocessor: PreprocessorType) -> Self
设置 CSS 预处理器类型
Trait Implementations§
Source§impl Default for StyleProcessor
impl Default for StyleProcessor
Source§fn default() -> StyleProcessor
fn default() -> StyleProcessor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StyleProcessor
impl RefUnwindSafe for StyleProcessor
impl Send for StyleProcessor
impl Sync for StyleProcessor
impl Unpin for StyleProcessor
impl UnsafeUnpin for StyleProcessor
impl UnwindSafe for StyleProcessor
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