pub struct CodeReference {
    pub address: u64,
    /* private fields */
}
Expand description

A struct representing a single code cross-reference. Taking a cue from crate::linearview::LinearDisassemblyLine, this struct uses ManuallyDrop to prevent destructors from being run on the Function object allocated by the core in BNGetCodeReferences (et al). The reference is cleaned up on Drop of the enclosing array object.

Fields

address: u64

Implementations

A handle to the referenced function bound by the CodeReference object’s lifetime. A user can call .to_owned() to promote this into its own ref-counted struct and use it after the lifetime of the CodeReference.

A handle to the CodeReference’s CoreArchitecture. This type is Copy so reference shenanigans are not needed here.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.