Struct goblin::mach::load_command::SymsegCommand
source · [−]#[repr(C)]pub struct SymsegCommand {
pub cmd: u32,
pub cmdsize: u32,
pub offset: u32,
pub size: u32,
}
Expand description
The symseg_command contains the offset and size of the GNU style symbol table information as described in the header file <symseg.h>. The symbol roots of the symbol segments must also be aligned properly in the file. So the requirement of keeping the offsets aligned to a multiple of a 4 bytes translates to the length field of the symbol roots also being a multiple of a long. Also the padding must again be zeroed. (THIS IS OBSOLETE and no longer supported).
Fields
cmd: u32
LC_SYMSEG
cmdsize: u32
sizeof(struct symseg_command)
offset: u32
symbol segment offset
size: u32
symbol segment size in bytes
Trait Implementations
sourceimpl Clone for SymsegCommand
impl Clone for SymsegCommand
sourcefn clone(&self) -> SymsegCommand
fn clone(&self) -> SymsegCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SymsegCommand
impl Debug for SymsegCommand
sourceimpl<'a> TryFromCtx<'a, Endian, [u8]> for SymsegCommand where
SymsegCommand: 'a,
impl<'a> TryFromCtx<'a, Endian, [u8]> for SymsegCommand where
SymsegCommand: 'a,
sourceimpl<'a> TryIntoCtx<Endian, [u8]> for &'a SymsegCommand
impl<'a> TryIntoCtx<Endian, [u8]> for &'a SymsegCommand
sourceimpl TryIntoCtx<Endian, [u8]> for SymsegCommand
impl TryIntoCtx<Endian, [u8]> for SymsegCommand
impl Copy for SymsegCommand
Auto Trait Implementations
impl RefUnwindSafe for SymsegCommand
impl Send for SymsegCommand
impl Sync for SymsegCommand
impl Unpin for SymsegCommand
impl UnwindSafe for SymsegCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more