pub struct Main<'a> { /* private fields */ }
Expand description
Structure that represent the LC_MAIN
command. This kind of command can be used to determine the
entrypoint of an executable.
Implementations§
§impl Main<'_>
impl Main<'_>
pub fn entrypoint(&self) -> u64
pub fn entrypoint(&self) -> u64
Offset of the main function relative to the __TEXT
segment
pub fn stack_size(&self) -> u64
pub fn stack_size(&self) -> u64
The initial stack size
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Main<'a>
impl<'a> !Send for Main<'a>
impl<'a> !Sync for Main<'a>
impl<'a> Unpin for Main<'a>
impl<'a> UnwindSafe for Main<'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