pub struct CSSBuilder<'a> { /* private fields */ }Expand description
Manages the process of compiling and building CSS files from a configuration.
Implementations§
Source§impl<'a> CSSBuilder<'a>
impl<'a> CSSBuilder<'a>
Sourcepub fn new<O: CSSOptimizer>(
config: &'a Config,
current_dir: &'a Path,
optimizer: &'a O,
) -> Result<Self, GrimoireCSSError>
pub fn new<O: CSSOptimizer>( config: &'a Config, current_dir: &'a Path, optimizer: &'a O, ) -> Result<Self, GrimoireCSSError>
Creates a new CSSBuilder instance.
§Arguments
config- Reference to the Grimoire CSS configuration.current_dir- Current working directory path.optimizer- A reference to an implementation of theCSSOptimizertrait, which is responsible for optimizing CSS during the build process.
§Errors
Returns a GrimoireCSSError if the regex initialization fails.
Sourcepub fn build(&mut self) -> Result<(), GrimoireCSSError>
pub fn build(&mut self) -> Result<(), GrimoireCSSError>
Executes the build process, compiling CSS based on the provided configuration.
Processes each project, compiles shared and critical CSS, and writes the output files.
§Errors
Returns a GrimoireCSSError if any step in the build process fails.
Auto Trait Implementations§
impl<'a> Freeze for CSSBuilder<'a>
impl<'a> !RefUnwindSafe for CSSBuilder<'a>
impl<'a> Send for CSSBuilder<'a>
impl<'a> Sync for CSSBuilder<'a>
impl<'a> Unpin for CSSBuilder<'a>
impl<'a> !UnwindSafe for CSSBuilder<'a>
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