pub struct MirProgram {
pub functions: Vec<MirFunction>,
pub struct_defs: Vec<MirStructDef>,
pub enum_defs: Vec<MirEnumDef>,
pub entry: MirFnId,
}Expand description
A MIR program is a collection of functions + struct defs + an entry point.
Fields§
§functions: Vec<MirFunction>§struct_defs: Vec<MirStructDef>§enum_defs: Vec<MirEnumDef>§entry: MirFnIdTop-level statements (let bindings, expr stmts) are collected into
a synthetic __main function.
Implementations§
Source§impl MirProgram
impl MirProgram
Sourcepub fn build_all_cfgs(&mut self)
pub fn build_all_cfgs(&mut self)
Build CFG for all functions in this program.
Trait Implementations§
Source§impl Clone for MirProgram
impl Clone for MirProgram
Source§fn clone(&self) -> MirProgram
fn clone(&self) -> MirProgram
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 moreAuto Trait Implementations§
impl Freeze for MirProgram
impl RefUnwindSafe for MirProgram
impl Send for MirProgram
impl Sync for MirProgram
impl Unpin for MirProgram
impl UnsafeUnpin for MirProgram
impl UnwindSafe for MirProgram
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