pub enum PythonRuntimeAccessKey {
Property(String),
Index(u128),
Dynamic,
Unsupported,
}Expand description
A statically nameable Python access key.
Dynamic and unsupported forms are retained as facts so a caller preserves an incomplete answer instead of silently dropping the access.
Variants§
Property(String)
A plain string-literal subscript, such as os.environ["HOME"].
Index(u128)
A non-negative integer-literal subscript, such as sys.argv[1].
Dynamic
The subscript is computed, so the read names no static key.
Unsupported
The subscript is a slice, a tuple, or another shape whose value is not one modeled element.
Trait Implementations§
Source§impl Clone for PythonRuntimeAccessKey
impl Clone for PythonRuntimeAccessKey
Source§impl Debug for PythonRuntimeAccessKey
impl Debug for PythonRuntimeAccessKey
impl Eq for PythonRuntimeAccessKey
Source§impl PartialEq for PythonRuntimeAccessKey
impl PartialEq for PythonRuntimeAccessKey
impl StructuralPartialEq for PythonRuntimeAccessKey
Auto Trait Implementations§
impl Forget for PythonRuntimeAccessKey
impl Freeze for PythonRuntimeAccessKey
impl Move for PythonRuntimeAccessKey
impl RefUnwindSafe for PythonRuntimeAccessKey
impl Send for PythonRuntimeAccessKey
impl Sync for PythonRuntimeAccessKey
impl Unpin for PythonRuntimeAccessKey
impl UnsafeUnpin for PythonRuntimeAccessKey
impl UnwindSafe for PythonRuntimeAccessKey
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> 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