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 From<BytecodeOptimizationLevel> for i32
impl From<BytecodeOptimizationLevel> for i32
Source§fn from(level: BytecodeOptimizationLevel) -> Self
fn from(level: BytecodeOptimizationLevel) -> Self
Converts to this type from the input type.
Source§impl TryFrom<i32> for BytecodeOptimizationLevel
impl TryFrom<i32> for BytecodeOptimizationLevel
impl Copy for BytecodeOptimizationLevel
impl Eq for BytecodeOptimizationLevel
impl StructuralPartialEq for BytecodeOptimizationLevel
Auto Trait Implementations§
impl Freeze for BytecodeOptimizationLevel
impl RefUnwindSafe for BytecodeOptimizationLevel
impl Send for BytecodeOptimizationLevel
impl Sync for BytecodeOptimizationLevel
impl Unpin for BytecodeOptimizationLevel
impl UnwindSafe for BytecodeOptimizationLevel
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§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