pub struct Header<'a> { /* private fields */ }
Expand description
A mach-o file header.
Implementations§
Source§impl<'a> Header<'a>
impl<'a> Header<'a>
Sourcepub fn new(input: &'a [u8]) -> Result<Header<'a>, Error>
pub fn new(input: &'a [u8]) -> Result<Header<'a>, Error>
Parse the mach-o file header from the given input slice.
Sourcepub fn is_native_byteorder(&self) -> bool
pub fn is_native_byteorder(&self) -> bool
Returns true if the object file is encoded with the same byteorder that the current platform uses natively.
Trait Implementations§
impl<'a> Copy for Header<'a>
Auto Trait Implementations§
impl<'a> Freeze for Header<'a>
impl<'a> RefUnwindSafe for Header<'a>
impl<'a> !Send for Header<'a>
impl<'a> !Sync for Header<'a>
impl<'a> Unpin for Header<'a>
impl<'a> UnwindSafe for Header<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)