pub struct PoolMethod {
pub name: Arc<str>,
pub desc: Arc<str>,
pub access: u32,
pub code_off: u32,
pub debug_info_off: u32,
pub dex_idx: usize,
}Expand description
One method of a pooled class.
Fields§
§name: Arc<str>Shared with the dex string table (the idx IS the dedup key).
desc: Arc<str>Method descriptor, shared per proto (a dex’s proto table is the descriptor dedup layer — 1.9M methods on lark share ~1 proto table’s worth of unique descriptors).
access: u32§code_off: u32§debug_info_off: u32§dex_idx: usizeWhich DEX image the body lives in.
Implementations§
Source§impl PoolMethod
impl PoolMethod
pub fn parsed_desc(&self) -> Option<MethodDescriptor>
pub fn is_static(&self) -> bool
pub fn is_abstract_or_native(&self) -> bool
Trait Implementations§
Source§impl Clone for PoolMethod
impl Clone for PoolMethod
Auto Trait Implementations§
impl Freeze for PoolMethod
impl RefUnwindSafe for PoolMethod
impl Send for PoolMethod
impl Sync for PoolMethod
impl Unpin for PoolMethod
impl UnsafeUnpin for PoolMethod
impl UnwindSafe for PoolMethod
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