pub struct ClassExtractor { /* private fields */ }Expand description
Class extractor for different file types
Implementations§
Source§impl ClassExtractor
impl ClassExtractor
Sourcepub async fn extract_classes(
&self,
file_info: &FileInfo,
) -> Result<Vec<ExtractedClass>>
pub async fn extract_classes( &self, file_info: &FileInfo, ) -> Result<Vec<ExtractedClass>>
Extract classes from file information
Sourcepub fn add_custom_rule(&mut self, rule: ExtractionRule) -> Result<()>
pub fn add_custom_rule(&mut self, rule: ExtractionRule) -> Result<()>
Add a custom extraction rule
Sourcepub fn get_custom_rules(&self) -> &[ExtractionRule]
pub fn get_custom_rules(&self) -> &[ExtractionRule]
Get all custom rules
Sourcepub fn clear_custom_rules(&mut self)
pub fn clear_custom_rules(&mut self)
Clear all custom rules
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClassExtractor
impl RefUnwindSafe for ClassExtractor
impl Send for ClassExtractor
impl Sync for ClassExtractor
impl Unpin for ClassExtractor
impl UnsafeUnpin for ClassExtractor
impl UnwindSafe for ClassExtractor
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