Struct lightningcss::stylesheet::ToCssResult
source · pub struct ToCssResult {
pub code: String,
pub exports: Option<CssModuleExports>,
pub references: Option<CssModuleReferences>,
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.
references: Option<CssModuleReferences>
A map of CSS module references, if the css_modules
config
had dashed_idents
enabled.
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.
Trait Implementations§
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.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere 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