pub struct CompileOpts {
pub optimize: u8,
pub debug_ranges: bool,
pub int_max_str_digits: usize,
pub allow_top_level_await: bool,
pub future_features: CodeFlags,
pub dont_imply_dedent: bool,
pub recursion_limit: usize,
}Fields§
§optimize: u8How optimized the bytecode output should be; any optimize > 0 does not emit assert statements
debug_ranges: boolInclude column info in bytecode (-X no_debug_ranges disables)
int_max_str_digits: usizeMaximum decimal integer literal digits, matching sys.int_info/default.
allow_top_level_await: boolAllow module-level await/async-for/async-with, matching PyCF_ALLOW_TOP_LEVEL_AWAIT.
future_features: CodeFlagsFuture compiler flags passed explicitly to compile(), matching cf_flags merge.
dont_imply_dedent: boolKeep single-input blocks incomplete until a terminating newline is seen.
recursion_limit: usizeRecursion limit used by compiler tree walks, matching Py_EnterRecursiveCall.
Trait Implementations§
Source§impl Clone for CompileOpts
impl Clone for CompileOpts
Source§impl Debug for CompileOpts
impl Debug for CompileOpts
Auto Trait Implementations§
impl Freeze for CompileOpts
impl RefUnwindSafe for CompileOpts
impl Send for CompileOpts
impl Sync for CompileOpts
impl Unpin for CompileOpts
impl UnsafeUnpin for CompileOpts
impl UnwindSafe for CompileOpts
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
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