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: StringSerialized 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 Freeze for ToCssResult
impl RefUnwindSafe for ToCssResult
impl Send for ToCssResult
impl Sync for ToCssResult
impl Unpin for ToCssResult
impl UnwindSafe for ToCssResult
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more