pub struct ContentScanner { /* private fields */ }Expand description
Content scanner for finding used CSS classes
Implementations§
Source§impl ContentScanner
impl ContentScanner
Sourcepub fn scan_content(
&self,
content_paths: &[String],
) -> Result<HashSet<String>, PurgeError>
pub fn scan_content( &self, content_paths: &[String], ) -> Result<HashSet<String>, PurgeError>
Scan content for used classes
Sourcepub fn scan_content_advanced(
&self,
content_paths: &[String],
options: &PurgeOptions,
) -> Result<HashSet<String>, PurgeError>
pub fn scan_content_advanced( &self, content_paths: &[String], options: &PurgeOptions, ) -> Result<HashSet<String>, PurgeError>
Scan content with advanced options
Auto Trait Implementations§
impl Freeze for ContentScanner
impl RefUnwindSafe for ContentScanner
impl Send for ContentScanner
impl Sync for ContentScanner
impl Unpin for ContentScanner
impl UnwindSafe for ContentScanner
Blanket Implementations§
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<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