pub struct PythonVisitor<'a> {
pub file: &'a ProjectFile,
pub source: &'a str,
pub package_name: &'a str,
pub parsed: &'a mut ParsedFile,
pub module: Option<CodeUnit>,
pub overload_decorators: &'a PythonOverloadDecoratorBindings,
}Fields§
§file: &'a ProjectFile§source: &'a str§package_name: &'a str§parsed: &'a mut ParsedFile§module: Option<CodeUnit>§overload_decorators: &'a PythonOverloadDecoratorBindingsImplementations§
Source§impl<'a> PythonVisitor<'a>
impl<'a> PythonVisitor<'a>
pub fn visit_container( &mut self, node: Node<'_>, scope: &[Scope], module_control_depth: usize, )
Auto Trait Implementations§
impl<'a> !UnwindSafe for PythonVisitor<'a>
impl<'a> Freeze for PythonVisitor<'a>
impl<'a> RefUnwindSafe for PythonVisitor<'a>
impl<'a> Send for PythonVisitor<'a>
impl<'a> Sync for PythonVisitor<'a>
impl<'a> Unpin for PythonVisitor<'a>
impl<'a> UnsafeUnpin for PythonVisitor<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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