pub struct Function {
pub addr: VAddr,
pub size: u64,
pub name: String,
pub sources: Vec<FunctionSource>,
}Expand description
A discovered function.
size may be zero when the source did not record one (e.g. .eh_frame
gives a range, but some symbol-table entries leave st_size = 0).
Consumers should treat zero size as “unknown” and resolve via boundary
inference (next-function-start, end-of-section) when needed.
Fields§
§addr: VAddr§size: u64§name: String§sources: Vec<FunctionSource>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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