pub enum BytecodeOptimizationLevel {
Zero,
One,
Two,
}
Expand description
An optimization level for Python bytecode.
Serialization type: int
Variants
Zero
Optimization level 0.
Serialized value: 0
One
Optimization level 1.
Serialized value: 1
Two
Optimization level 2.
Serialized value: 2
Implementations
sourceimpl BytecodeOptimizationLevel
impl BytecodeOptimizationLevel
sourcepub fn to_extra_tag(&self) -> &'static str
pub fn to_extra_tag(&self) -> &'static str
Determine hte extra filename tag for bytecode files of this variant.
Trait Implementations
sourceimpl Clone for BytecodeOptimizationLevel
impl Clone for BytecodeOptimizationLevel
sourcefn clone(&self) -> BytecodeOptimizationLevel
fn clone(&self) -> BytecodeOptimizationLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BytecodeOptimizationLevel
impl Debug for BytecodeOptimizationLevel
sourceimpl TryFrom<i32> for BytecodeOptimizationLevel
impl TryFrom<i32> for BytecodeOptimizationLevel
impl Copy for BytecodeOptimizationLevel
impl StructuralPartialEq for BytecodeOptimizationLevel
Auto Trait Implementations
impl RefUnwindSafe for BytecodeOptimizationLevel
impl Send for BytecodeOptimizationLevel
impl Sync for BytecodeOptimizationLevel
impl Unpin for BytecodeOptimizationLevel
impl UnwindSafe for BytecodeOptimizationLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more