Struct parcel_css::stylesheet::ParserOptions
source · [−]pub struct ParserOptions<'o, 'i> {
pub filename: String,
pub nesting: bool,
pub custom_media: bool,
pub css_modules: Option<Config<'o>>,
pub source_index: u32,
pub error_recovery: bool,
pub warnings: Option<Arc<RwLock<Vec<Error<ParserError<'i>>>>>>,
}
Expand description
CSS parsing options.
Fields
filename: String
Filename to use in error messages.
nesting: bool
Whether the enable the CSS nesting draft syntax.
custom_media: bool
Whether to enable the custom media draft syntax.
css_modules: Option<Config<'o>>
Whether the enable CSS modules.
source_index: u32
The source index to assign to all parsed rules. Impacts the source map when the style sheet is serialized.
error_recovery: bool
Whether to ignore invalid rules and declarations rather than erroring.
warnings: Option<Arc<RwLock<Vec<Error<ParserError<'i>>>>>>
A list that will be appended to when a warning occurs.
Trait Implementations
sourceimpl<'o, 'i> Clone for ParserOptions<'o, 'i>
impl<'o, 'i> Clone for ParserOptions<'o, 'i>
sourcefn clone(&self) -> ParserOptions<'o, 'i>
fn clone(&self) -> ParserOptions<'o, 'i>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'o, 'i> Debug for ParserOptions<'o, 'i>
impl<'o, 'i> Debug for ParserOptions<'o, 'i>
sourceimpl<'o, 'i> Default for ParserOptions<'o, 'i>
impl<'o, 'i> Default for ParserOptions<'o, 'i>
sourcefn default() -> ParserOptions<'o, 'i>
fn default() -> ParserOptions<'o, 'i>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'o, 'i> RefUnwindSafe for ParserOptions<'o, 'i>
impl<'o, 'i> Send for ParserOptions<'o, 'i>
impl<'o, 'i> Sync for ParserOptions<'o, 'i>
impl<'o, 'i> Unpin for ParserOptions<'o, 'i>
impl<'o, 'i> UnwindSafe for ParserOptions<'o, 'i>
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer