pub struct Options {
pub lowercase_properties: bool,
pub position: bool,
}Expand description
Plugin options. Mirrors the TypeScript CssOptions and the Go
CssOptions, and the defaults match Css.defaults / Defaults.
Fields§
§lowercase_properties: boolLowercase declaration property names (CSS property names are case-insensitive). Selectors, values and at-rule preludes are untouched. Off by default.
position: boolAttach a position: { start: { line, column }, end: { … } } (1-based)
to every node. Off by default — positions add noise.
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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