pub struct PythonProgram {
pub header: PycHeader,
pub code_object: PythonCodeObject,
pub version: PythonVersion,
}Expand description
Python .pyc 程序的高层语义定义(以指令序列为核心) Python .pyc 程序的高层语义定义(以指令序列为核心)
Fields§
§header: PycHeader.pyc 文件的头部。
code_object: PythonCodeObjectPython 程序的主代码对象。
version: PythonVersion与 .pyc 文件关联的 Python 版本。
Trait Implementations§
Source§impl Clone for PythonProgram
impl Clone for PythonProgram
Source§fn clone(&self) -> PythonProgram
fn clone(&self) -> PythonProgram
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 PythonProgram
impl Debug for PythonProgram
Source§impl Default for PythonProgram
impl Default for PythonProgram
Source§fn default() -> PythonProgram
fn default() -> PythonProgram
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PythonProgram
impl<'de> Deserialize<'de> for PythonProgram
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 PythonProgram
impl PartialEq for PythonProgram
Source§impl Serialize for PythonProgram
impl Serialize for PythonProgram
impl StructuralPartialEq for PythonProgram
Auto Trait Implementations§
impl Freeze for PythonProgram
impl RefUnwindSafe for PythonProgram
impl Send for PythonProgram
impl Sync for PythonProgram
impl Unpin for PythonProgram
impl UnwindSafe for PythonProgram
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