pub struct ClassScanner { /* private fields */ }Expand description
High-level class scanner
Implementations§
Source§impl ClassScanner
impl ClassScanner
Sourcepub fn with_config(config: ScanConfig) -> Self
pub fn with_config(config: ScanConfig) -> Self
Create a new class scanner with custom configuration
Sourcepub fn scan_directory(&mut self, path: &Path) -> Result<ScanResults>
pub fn scan_directory(&mut self, path: &Path) -> Result<ScanResults>
Scan a directory for Tailwind classes
Sourcepub fn scan_files(&mut self, files: &[PathBuf]) -> Result<ScanResults>
pub fn scan_files(&mut self, files: &[PathBuf]) -> Result<ScanResults>
Scan multiple files
Sourcepub fn get_config(&self) -> &ScanConfig
pub fn get_config(&self) -> &ScanConfig
Get the current configuration
Sourcepub fn set_config(&mut self, config: ScanConfig)
pub fn set_config(&mut self, config: ScanConfig)
Update the configuration
Trait Implementations§
Source§impl Clone for ClassScanner
impl Clone for ClassScanner
Source§fn clone(&self) -> ClassScanner
fn clone(&self) -> ClassScanner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClassScanner
impl Debug for ClassScanner
Auto Trait Implementations§
impl Freeze for ClassScanner
impl RefUnwindSafe for ClassScanner
impl Send for ClassScanner
impl Sync for ClassScanner
impl Unpin for ClassScanner
impl UnwindSafe for ClassScanner
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