pub struct ParserOptions {
pub try_parsing_value_in_custom_property: bool,
pub tolerate_semicolon_in_sass: bool,
}Expand description
Parser options for customizing parser behaviors.
Fields§
§try_parsing_value_in_custom_property: boolEnabling this will make parser attempt to parse custom property value as normal declaration value instead of tokens. It will fallback to parse as tokens if there’re syntax errors when parsing as values.
tolerate_semicolon_in_sass: boolIf enabled, trailing semicolon of each statement will be treated as recoverable errors, instead of raising a syntax error.
Trait Implementations§
Source§impl Clone for ParserOptions
impl Clone for ParserOptions
Source§fn clone(&self) -> ParserOptions
fn clone(&self) -> ParserOptions
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 moreSource§impl Debug for ParserOptions
impl Debug for ParserOptions
Source§impl Default for ParserOptions
impl Default for ParserOptions
Source§fn default() -> ParserOptions
fn default() -> ParserOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParserOptions
impl PartialEq for ParserOptions
impl Copy for ParserOptions
impl Eq for ParserOptions
impl StructuralPartialEq for ParserOptions
Auto Trait Implementations§
impl Freeze for ParserOptions
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnwindSafe for ParserOptions
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