Enum erg_compiler::ty::codeobj::CodeObjFlags
source · #[repr(u32)]pub enum CodeObjFlags {
Show 21 variants
Optimized = 1,
NewLocals = 2,
VarArgs = 4,
VarKeywords = 8,
Nested = 16,
Generator = 32,
NoFree = 64,
Coroutine = 128,
IterableCoroutine = 256,
AsyncGenerator = 512,
FutureDivision = 8_192,
FutureAbsoluteImport = 16_384,
FutureWithStatement = 32_768,
FuturePrintFunction = 65_536,
FutureUnicodeLiterals = 131_072,
FutureBarryAsBDFL = 262_144,
FutureGeneratorStop = 524_288,
FutureAnnotations = 1_048_576,
EvmDynParam = 268_435_456,
EvmNoGC = 1_073_741_824,
Illegal = 0,
}
Expand description
Bit masks for CodeObj.flags
Variants§
Optimized = 1
NewLocals = 2
VarArgs = 4
VarKeywords = 8
Nested = 16
Generator = 32
NoFree = 64
Coroutine = 128
IterableCoroutine = 256
AsyncGenerator = 512
FutureDivision = 8_192
FutureAbsoluteImport = 16_384
FutureWithStatement = 32_768
FuturePrintFunction = 65_536
FutureUnicodeLiterals = 131_072
FutureBarryAsBDFL = 262_144
FutureGeneratorStop = 524_288
FutureAnnotations = 1_048_576
EvmDynParam = 268_435_456
EvmNoGC = 1_073_741_824
Illegal = 0
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 for CodeObjFlags
impl PartialEq for CodeObjFlags
impl Copy for CodeObjFlags
impl Eq for CodeObjFlags
impl StructuralPartialEq for CodeObjFlags
Auto Trait Implementations§
impl Freeze for CodeObjFlags
impl RefUnwindSafe for CodeObjFlags
impl Send for CodeObjFlags
impl Sync for CodeObjFlags
impl Unpin for CodeObjFlags
impl UnwindSafe for CodeObjFlags
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)