pub struct PythonLexicalScopeBindings { /* private fields */ }Expand description
Completed function binding facts without borrowed tree-sitter nodes. Retain these only under the identity of the exact source that produced them.
Implementations§
Source§impl PythonLexicalScopeBindings
impl PythonLexicalScopeBindings
pub fn name_resolution_at( &self, name: &str, reference: Node<'_>, ) -> PythonLexicalNameResolution
pub fn resolves_to_local_function( &self, name: &str, reference: Node<'_>, ) -> bool
Sourcepub fn has_runtime_callable_binding_at(
&self,
name: &str,
reference: Node<'_>,
) -> bool
pub fn has_runtime_callable_binding_at( &self, name: &str, reference: Node<'_>, ) -> bool
Whether the active callable obtains name from a runtime binding
rather than an untouched function or import declaration.
Auto Trait Implementations§
impl Freeze for PythonLexicalScopeBindings
impl RefUnwindSafe for PythonLexicalScopeBindings
impl Send for PythonLexicalScopeBindings
impl Sync for PythonLexicalScopeBindings
impl Unpin for PythonLexicalScopeBindings
impl UnsafeUnpin for PythonLexicalScopeBindings
impl UnwindSafe for PythonLexicalScopeBindings
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> 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