pub enum BytecodeOptimizationLevel {
Zero,
One,
Two,
}
Expand description
An optimization level for Python bytecode.
Variants
Zero
One
Two
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more