pub struct CodeInfo {
pub flags: CodeFlags,
pub source_path: String,
pub private: Option<String>,
pub blocks: Vec<Block>,
pub current_block: BlockIdx,
pub metadata: CodeUnitMetadata,
pub static_attributes: Option<IndexSet<String, RandomState>>,
pub in_inlined_comp: bool,
pub fblock: Vec<FBlockInfo>,
pub symbol_table_index: usize,
pub in_conditional_block: u32,
pub next_conditional_annotation_index: u32,
}Fields§
§flags: CodeFlags§source_path: String§private: Option<String>§blocks: Vec<Block>§current_block: BlockIdx§metadata: CodeUnitMetadata§static_attributes: Option<IndexSet<String, RandomState>>§in_inlined_comp: bool§fblock: Vec<FBlockInfo>§symbol_table_index: usize§in_conditional_block: u32§next_conditional_annotation_index: u32Implementations§
Source§impl CodeInfo
impl CodeInfo
pub fn finalize_code( self, opts: &CompileOpts, ) -> Result<CodeObject, InternalError>
Trait Implementations§
Source§impl InstrDisplayContext for CodeInfo
impl InstrDisplayContext for CodeInfo
type Constant = ConstantData
fn get_constant(&self, consti: ConstIdx) -> &ConstantData
fn get_name(&self, i: usize) -> &str
fn get_varname(&self, var_num: VarNum) -> &str
Source§fn get_localsplus_name(&self, var_num: VarNum) -> &str
fn get_localsplus_name(&self, var_num: VarNum) -> &str
Get name for a localsplus index (used by DEREF instructions).
Auto Trait Implementations§
impl Freeze for CodeInfo
impl !RefUnwindSafe for CodeInfo
impl Send for CodeInfo
impl Sync for CodeInfo
impl Unpin for CodeInfo
impl UnsafeUnpin 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more