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§
source§impl 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§
source§impl Clone for BytecodeOptimizationLevel
impl Clone for BytecodeOptimizationLevel
source§fn clone(&self) -> BytecodeOptimizationLevel
fn clone(&self) -> BytecodeOptimizationLevel
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 BytecodeOptimizationLevel
impl Debug for BytecodeOptimizationLevel
source§impl PartialEq<BytecodeOptimizationLevel> for BytecodeOptimizationLevel
impl PartialEq<BytecodeOptimizationLevel> for BytecodeOptimizationLevel
source§fn eq(&self, other: &BytecodeOptimizationLevel) -> bool
fn eq(&self, other: &BytecodeOptimizationLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.