pub struct Options {
pub lowercase_properties: bool,
pub position: bool,
}Expand description
The plugin’s options: CssOptions in the canonical port.
Fields§
§lowercase_properties: boolLowercase declaration property names (CSS property names are case-insensitive). Selectors, values and at-rule preludes are left alone.
position: boolAttach position: { start: { line, column }, end: { … } } (1-based,
columns in UTF-16 code units) to every node.
Implementations§
Source§impl Options
impl Options
Sourcepub fn from_value(options: &Value) -> Options
pub fn from_value(options: &Value) -> Options
Options from an engine option bag, as the plugin receives them: the
canonical camelCase keys lowercaseProperties and position, each
read for its JavaScript truthiness, as !!options.position does.
Anything else in the bag is ignored.
Sourcepub fn to_value(self) -> Value
pub fn to_value(self) -> Value
These options as an engine option bag, for Tabnas::use_plugin.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.