pub enum PythonRuntimeRootResolution {
ImportedModule,
LexicallyBound,
Unknown,
}Expand description
How the root identifier of one access path resolves at its use site.
Variants§
ImportedModule
The module scope binds the root exactly once, through an import of the named standard-library module, and no enclosing function rebinds it.
LexicallyBound
A parameter, local, or other binding covers the root at the use site, so this occurrence is not the module attribute.
Unknown
The binder evidence is insufficient to decide the root.
Trait Implementations§
Source§impl Clone for PythonRuntimeRootResolution
impl Clone for PythonRuntimeRootResolution
impl Copy for PythonRuntimeRootResolution
Source§impl Debug for PythonRuntimeRootResolution
impl Debug for PythonRuntimeRootResolution
impl Eq for PythonRuntimeRootResolution
impl StructuralPartialEq for PythonRuntimeRootResolution
Auto Trait Implementations§
impl Freeze for PythonRuntimeRootResolution
impl RefUnwindSafe for PythonRuntimeRootResolution
impl Send for PythonRuntimeRootResolution
impl Sync for PythonRuntimeRootResolution
impl Unpin for PythonRuntimeRootResolution
impl UnsafeUnpin for PythonRuntimeRootResolution
impl UnwindSafe for PythonRuntimeRootResolution
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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