pub struct PythonFunctionFlags {
pub generator: bool,
pub coroutine: bool,
pub descriptor: bool,
}Expand description
Python execution flags retained by the language body policy.
Fields§
§generator: boolWhether invocation constructs a generator frame.
coroutine: boolWhether invocation constructs a coroutine frame.
descriptor: boolWhether descriptor access binds a receiver.
Trait Implementations§
Source§impl Clone for PythonFunctionFlags
impl Clone for PythonFunctionFlags
Source§fn clone(&self) -> PythonFunctionFlags
fn clone(&self) -> PythonFunctionFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PythonFunctionFlags
Source§impl Debug for PythonFunctionFlags
impl Debug for PythonFunctionFlags
Source§impl Default for PythonFunctionFlags
impl Default for PythonFunctionFlags
Source§fn default() -> PythonFunctionFlags
fn default() -> PythonFunctionFlags
Returns the “default value” for a type. Read more
impl Eq for PythonFunctionFlags
Source§impl PartialEq for PythonFunctionFlags
impl PartialEq for PythonFunctionFlags
impl StructuralPartialEq for PythonFunctionFlags
Auto Trait Implementations§
impl Freeze for PythonFunctionFlags
impl RefUnwindSafe for PythonFunctionFlags
impl Send for PythonFunctionFlags
impl Sync for PythonFunctionFlags
impl Unpin for PythonFunctionFlags
impl UnsafeUnpin for PythonFunctionFlags
impl UnwindSafe for PythonFunctionFlags
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§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.