pub struct LoadCommand {
pub cmd: u32,
pub cmdsize: u32,
pub body: Vec<u8>,
}Expand description
One load command from the table that follows the file header.
body excludes the 8-byte (cmd, cmdsize) prefix — the prefix
is rebuilt on write from the struct fields, and the body bytes
round-trip verbatim. v1 keeps every command kind opaque; richer
per-cmd decoding (e.g. structured LC_SEGMENT_64, structured
LC_SYMTAB) is left for later passes.
Fields§
§cmd: u32§cmdsize: u32§body: Vec<u8>Trait Implementations§
Source§impl Clone for LoadCommand
impl Clone for LoadCommand
Source§fn clone(&self) -> LoadCommand
fn clone(&self) -> LoadCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoadCommand
impl Debug for LoadCommand
Source§impl PartialEq for LoadCommand
impl PartialEq for LoadCommand
Source§fn eq(&self, other: &LoadCommand) -> bool
fn eq(&self, other: &LoadCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LoadCommand
impl StructuralPartialEq for LoadCommand
Auto Trait Implementations§
impl Freeze for LoadCommand
impl RefUnwindSafe for LoadCommand
impl Send for LoadCommand
impl Sync for LoadCommand
impl Unpin for LoadCommand
impl UnsafeUnpin for LoadCommand
impl UnwindSafe for LoadCommand
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