pub struct PythonClassReferenceScope<'tree> { /* private fields */ }Expand description
Binding events in an executing class namespace at one reference. Only a proved static superclass path precedes that class statement’s name binding. Lazy type-parameter expressions and other header contexts keep that event. Other events retain the existing whole-scope conservative interpretation.
Implementations§
Source§impl<'tree> PythonClassReferenceScope<'tree>
impl<'tree> PythonClassReferenceScope<'tree>
pub fn new_bounded( scope: Node<'tree>, reference: Node<'tree>, scope_step: impl FnMut() -> bool, ) -> Option<Self>
pub fn collect_bounded( &self, source: &str, scope_step: impl FnMut() -> bool, ) -> Option<PythonLexicalScopeInventory<'tree>>
pub fn binds_name_bounded( &self, name: &str, source: &str, scope_step: impl FnMut() -> bool, ) -> Option<bool>
Auto Trait Implementations§
impl<'tree> Freeze for PythonClassReferenceScope<'tree>
impl<'tree> RefUnwindSafe for PythonClassReferenceScope<'tree>
impl<'tree> Send for PythonClassReferenceScope<'tree>
impl<'tree> Sync for PythonClassReferenceScope<'tree>
impl<'tree> Unpin for PythonClassReferenceScope<'tree>
impl<'tree> UnsafeUnpin for PythonClassReferenceScope<'tree>
impl<'tree> UnwindSafe for PythonClassReferenceScope<'tree>
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