pub struct CodeInfo {Show 14 fields
pub flags: CodeFlags,
pub posonlyarg_count: u32,
pub arg_count: u32,
pub kwonlyarg_count: u32,
pub source_path: String,
pub first_line_number: OneIndexed,
pub obj_name: String,
pub blocks: Vec<Block, Global>,
pub current_block: BlockIdx,
pub constants: IndexSet<ConstantData, RandomState>,
pub name_cache: IndexSet<String, RandomState>,
pub varname_cache: IndexSet<String, RandomState>,
pub cellvar_cache: IndexSet<String, RandomState>,
pub freevar_cache: IndexSet<String, RandomState>,
}
Fields§
§flags: CodeFlags
§posonlyarg_count: u32
§arg_count: u32
§kwonlyarg_count: u32
§source_path: String
§first_line_number: OneIndexed
§obj_name: String
§blocks: Vec<Block, Global>
§current_block: BlockIdx
§constants: IndexSet<ConstantData, RandomState>
§name_cache: IndexSet<String, RandomState>
§varname_cache: IndexSet<String, RandomState>
§cellvar_cache: IndexSet<String, RandomState>
§freevar_cache: IndexSet<String, RandomState>
Implementations§
source§impl CodeInfo
impl CodeInfo
pub fn finalize_code(self, optimize: u8) -> CodeObject<ConstantData>
Trait Implementations§
source§impl InstrDisplayContext for CodeInfo
impl InstrDisplayContext for CodeInfo
type Constant = ConstantData
fn get_constant(&self, i: usize) -> &ConstantData
fn get_name(&self, i: usize) -> &str
fn get_varname(&self, i: usize) -> &str
fn get_cell_name(&self, i: usize) -> &str
Auto Trait Implementations§
impl RefUnwindSafe for CodeInfo
impl Send for CodeInfo
impl Sync for CodeInfo
impl Unpin for CodeInfo
impl UnwindSafe for CodeInfo
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