pub struct PythonAnalyzer { /* private fields */ }
Expand description
Python-specific analyzer
Implementations§
Source§impl PythonAnalyzer
impl PythonAnalyzer
pub fn new() -> Self
Sourcepub fn analyze_decorators(&self, content: &str) -> Result<Vec<DecoratorInfo>>
pub fn analyze_decorators(&self, content: &str) -> Result<Vec<DecoratorInfo>>
Analyze Python decorators
Sourcepub fn analyze_metaclasses(&self, content: &str) -> Result<Vec<MetaclassInfo>>
pub fn analyze_metaclasses(&self, content: &str) -> Result<Vec<MetaclassInfo>>
Analyze Python metaclasses
Sourcepub fn analyze_inheritance(&self, content: &str) -> Result<Vec<InheritanceInfo>>
pub fn analyze_inheritance(&self, content: &str) -> Result<Vec<InheritanceInfo>>
Analyze Python inheritance
Sourcepub fn get_python_recommendations(
&self,
decorators: &[DecoratorInfo],
metaclasses: &[MetaclassInfo],
inheritance: &[InheritanceInfo],
) -> Vec<String>
pub fn get_python_recommendations( &self, decorators: &[DecoratorInfo], metaclasses: &[MetaclassInfo], inheritance: &[InheritanceInfo], ) -> Vec<String>
Get Python-specific recommendations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PythonAnalyzer
impl RefUnwindSafe for PythonAnalyzer
impl Send for PythonAnalyzer
impl Sync for PythonAnalyzer
impl Unpin for PythonAnalyzer
impl UnwindSafe for PythonAnalyzer
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