pub struct MethodEnv<'a> {
pub pool: &'a DexPool,
pub dex: &'a DexFile,
pub code: &'a CodeItem,
pub class_name: String,
pub method_name: String,
pub desc: MethodDescriptor,
pub is_static: bool,
pub code_units: u32,
}Expand description
Everything one method body needs from its DEX image.
Fields§
§pool: &'a DexPool§dex: &'a DexFile§code: &'a CodeItem§class_name: String§method_name: String§desc: MethodDescriptor§is_static: bool§code_units: u32Total code units — the CFG owns the insns stream, so the lifter reads
the extent from here instead of code.insns (hollowed after the
CFG build moved it).
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MethodEnv<'a>
impl<'a> RefUnwindSafe for MethodEnv<'a>
impl<'a> Send for MethodEnv<'a>
impl<'a> Sync for MethodEnv<'a>
impl<'a> Unpin for MethodEnv<'a>
impl<'a> UnsafeUnpin for MethodEnv<'a>
impl<'a> UnwindSafe for MethodEnv<'a>
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