#[non_exhaustive]pub struct RefResult {
pub dex_name: String,
pub method_idx: u32,
pub method: String,
pub signature: String,
pub matched: Vec<Matched>,
pub relation: Option<ClassRelation>,
pub sites: Vec<RefSite>,
pub context: Option<String>,
}Expand description
One aggregated reference result: a method and what it references.
For a class relation query (Extends / Implements) the row is a class
instead: method_idx is its type index, method and signature its
descriptor, matched the target descriptor and relation is set.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dex_name: StringThe DEX entry the row comes from.
method_idx: u32The method’s index in that DEX’s method_ids table.
method: StringLcls;->name
signature: StringLcls;->name(params)ret
matched: Vec<Matched>The matched constants (strings, descriptors, members).
relation: Option<ClassRelation>Set for the rows of a class relation query.
sites: Vec<RefSite>The referencing instructions, in offset order (none for class relations).
context: Option<String>Smali around the sites, when asked for (RefContext).
Implementations§
Trait Implementations§
impl Eq for RefResult
impl StructuralPartialEq for RefResult
Auto Trait Implementations§
impl Forget for RefResult
impl Freeze for RefResult
impl Move for RefResult
impl RefUnwindSafe for RefResult
impl Send for RefResult
impl Sync for RefResult
impl Unpin for RefResult
impl UnsafeUnpin for RefResult
impl UnwindSafe for RefResult
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