Struct parcel_css::stylesheet::StyleSheet
source · [−]pub struct StyleSheet<'i> {
pub filename: String,
pub rules: CssRuleList<'i>,
/* private fields */
}
Fields
filename: String
rules: CssRuleList<'i>
Implementations
pub fn new(
filename: String,
rules: CssRuleList<'_>,
options: ParserOptions
) -> StyleSheet<'_>
pub fn parse(
filename: String,
code: &'i str,
options: ParserOptions
) -> Result<StyleSheet<'i>, ParseError<'i, ParserError<'i>>>
Auto Trait Implementations
impl<'i> RefUnwindSafe for StyleSheet<'i>
impl<'i> !Send for StyleSheet<'i>
impl<'i> !Sync for StyleSheet<'i>
impl<'i> Unpin for StyleSheet<'i>
impl<'i> UnwindSafe for StyleSheet<'i>
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more