pub enum PythonVersion {
Unknown,
Python3_7,
Python3_8,
Python3_9,
Python3_10,
Python3_11,
Python3_12,
Python3_13,
Python3_14,
}Expand description
表示 Python 字节码的版本。
Variants§
Unknown
未知 Python 版本。
Python3_7
Python 3.7 版本。
Python3_8
Python 3.8 版本。
Python3_9
Python 3.9 版本。
Python3_10
Python 3.10 版本。
Python3_11
Python 3.11 版本。
Python3_12
Python 3.12 版本。
Python3_13
Python 3.13 版本。
Python3_14
Python 3.14 版本。
Implementations§
Trait Implementations§
Source§impl Clone for PythonVersion
impl Clone for PythonVersion
Source§fn clone(&self) -> PythonVersion
fn clone(&self) -> PythonVersion
Returns a duplicate 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 PythonVersion
impl Debug for PythonVersion
Source§impl Default for PythonVersion
impl Default for PythonVersion
Source§fn default() -> PythonVersion
fn default() -> PythonVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PythonVersion
impl<'de> Deserialize<'de> for PythonVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PythonVersion
impl PartialEq for PythonVersion
Source§impl Serialize for PythonVersion
impl Serialize for PythonVersion
impl Copy for PythonVersion
impl Eq for PythonVersion
impl StructuralPartialEq for PythonVersion
Auto Trait Implementations§
impl Freeze for PythonVersion
impl RefUnwindSafe for PythonVersion
impl Send for PythonVersion
impl Sync for PythonVersion
impl Unpin for PythonVersion
impl UnwindSafe for PythonVersion
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