Struct parcel_css::stylesheet::ToCssResult
source · [−]pub struct ToCssResult {
pub code: String,
pub exports: Option<CssModuleExports>,
pub dependencies: Option<Vec<Dependency>>,
}
Expand description
A result returned from to_css
, including the serialize CSS
and other metadata depending on the input options.
Fields
code: String
Serialized CSS code.
exports: Option<CssModuleExports>
A map of CSS module exports, if the css_modules
option was
enabled during parsing.
dependencies: Option<Vec<Dependency>>
A list of dependencies (e.g. @import
or url()
) found in
the style sheet, if the analyze_dependencies
option is enabled.
Auto Trait Implementations
impl RefUnwindSafe for ToCssResult
impl Send for ToCssResult
impl Sync for ToCssResult
impl Unpin for ToCssResult
impl UnwindSafe for ToCssResult
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