pub struct PythonCodeObject {Show 17 fields
pub source_name: String,
pub first_line: u32,
pub last_line: u32,
pub num_params: u8,
pub is_vararg: u8,
pub max_stack_size: u8,
pub nested_functions: Vec<PythonCodeObject>,
pub upvalues: Vec<Upvalue>,
pub local_vars: Vec<LocalVar>,
pub line_info: Vec<u8>,
pub co_argcount: u8,
pub co_nlocal: u8,
pub co_stacks: u8,
pub num_upval: u8,
pub co_code: Vec<PythonInstruction>,
pub co_consts: Vec<PythonObject>,
pub upvalue_n: u8,
}Fields§
§source_name: String§first_line: u32§last_line: u32§num_params: u8§is_vararg: u8§max_stack_size: u8§nested_functions: Vec<PythonCodeObject>§upvalues: Vec<Upvalue>§local_vars: Vec<LocalVar>§line_info: Vec<u8>§co_argcount: u8§co_nlocal: u8§co_stacks: u8§num_upval: u8§co_code: Vec<PythonInstruction>§co_consts: Vec<PythonObject>§upvalue_n: u8Trait Implementations§
Source§impl Clone for PythonCodeObject
impl Clone for PythonCodeObject
Source§fn clone(&self) -> PythonCodeObject
fn clone(&self) -> PythonCodeObject
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 PythonCodeObject
impl Debug for PythonCodeObject
Source§impl Default for PythonCodeObject
impl Default for PythonCodeObject
Source§fn default() -> PythonCodeObject
fn default() -> PythonCodeObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PythonCodeObject
impl<'de> Deserialize<'de> for PythonCodeObject
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 PythonCodeObject
impl PartialEq for PythonCodeObject
Source§impl Serialize for PythonCodeObject
impl Serialize for PythonCodeObject
impl Eq for PythonCodeObject
impl StructuralPartialEq for PythonCodeObject
Auto Trait Implementations§
impl Freeze for PythonCodeObject
impl RefUnwindSafe for PythonCodeObject
impl Send for PythonCodeObject
impl Sync for PythonCodeObject
impl Unpin for PythonCodeObject
impl UnwindSafe for PythonCodeObject
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