pub struct PythonVisitor<'source, 'parsed, 'structural>where
'source: 'structural,{
pub file: &'parsed ProjectFile,
pub source: &'source str,
pub package_name: &'parsed str,
pub parsed: &'parsed mut ParsedFile,
pub module: Option<CodeUnit>,
/* private fields */
}Fields§
§file: &'parsed ProjectFile§source: &'source str§package_name: &'parsed str§parsed: &'parsed mut ParsedFile§module: Option<CodeUnit>Implementations§
Source§impl<'source, 'parsed, 'structural> PythonVisitor<'source, 'parsed, 'structural>where
'source: 'structural,
impl<'source, 'parsed, 'structural> PythonVisitor<'source, 'parsed, 'structural>where
'source: 'structural,
pub fn visit_container( &mut self, node: Node<'_>, scope: &[Scope], module_control_depth: usize, )
Auto Trait Implementations§
impl<'source, 'parsed, 'structural> !RefUnwindSafe for PythonVisitor<'source, 'parsed, 'structural>
impl<'source, 'parsed, 'structural> !UnwindSafe for PythonVisitor<'source, 'parsed, 'structural>
impl<'source, 'parsed, 'structural> Freeze for PythonVisitor<'source, 'parsed, 'structural>
impl<'source, 'parsed, 'structural> Send for PythonVisitor<'source, 'parsed, 'structural>
impl<'source, 'parsed, 'structural> Sync for PythonVisitor<'source, 'parsed, 'structural>
impl<'source, 'parsed, 'structural> Unpin for PythonVisitor<'source, 'parsed, 'structural>
impl<'source, 'parsed, 'structural> UnsafeUnpin for PythonVisitor<'source, 'parsed, 'structural>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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