Struct parcel_css::stylesheet::StyleSheet
source · [−]pub struct StyleSheet<'i> {
pub rules: CssRuleList<'i>,
pub sources: Vec<String>,
/* private fields */
}
Fields
rules: CssRuleList<'i>
sources: Vec<String>
Implementations
sourceimpl<'i> StyleSheet<'i>
impl<'i> StyleSheet<'i>
pub fn new(
sources: Vec<String>,
rules: CssRuleList<'_>,
options: ParserOptions
) -> StyleSheet<'_>
pub fn parse(
filename: String,
code: &'i str,
options: ParserOptions
) -> Result<StyleSheet<'i>, Error<ParserError<'i>>>
pub fn minify(
&mut self,
options: MinifyOptions
) -> Result<(), Error<MinifyErrorKind>>
pub fn to_css(
&self,
options: PrinterOptions<'_>
) -> Result<ToCssResult, Error<PrinterErrorKind>>
Trait Implementations
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
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