Enum erg_compiler::ty::codeobj::CodeObjFlags
source · #[repr(u32)]
pub enum CodeObjFlags {
Show 21 variants
Optimized,
NewLocals,
VarArgs,
VarKeywords,
Nested,
Generator,
NoFree,
Coroutine,
IterableCoroutine,
AsyncGenerator,
FutureDivision,
FutureAbsoluteImport,
FutureWithStatement,
FuturePrintFunction,
FutureUnicodeLiterals,
FutureBarryAsBDFL,
FutureGeneratorStop,
FutureAnnotations,
EvmDynParam,
EvmNoGC,
Illegal,
}
Expand description
Bit masks for CodeObj.flags
Variants§
Optimized
NewLocals
VarArgs
VarKeywords
Nested
Generator
NoFree
Coroutine
IterableCoroutine
AsyncGenerator
FutureDivision
FutureAbsoluteImport
FutureWithStatement
FuturePrintFunction
FutureUnicodeLiterals
FutureBarryAsBDFL
FutureGeneratorStop
FutureAnnotations
EvmDynParam
EvmNoGC
Illegal
Implementations§
Trait Implementations§
source§impl Clone for CodeObjFlags
impl Clone for CodeObjFlags
source§fn clone(&self) -> CodeObjFlags
fn clone(&self) -> CodeObjFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CodeObjFlags
impl Debug for CodeObjFlags
source§impl From<u32> for CodeObjFlags
impl From<u32> for CodeObjFlags
source§impl PartialEq<CodeObjFlags> for CodeObjFlags
impl PartialEq<CodeObjFlags> for CodeObjFlags
source§fn eq(&self, other: &CodeObjFlags) -> bool
fn eq(&self, other: &CodeObjFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.