#[repr(C)]pub struct ModuleInfo {
pub id: u64,
pub format: u32,
pub flags: u32,
pub version: u16,
pub cpu_arch: u8,
pub reserved: u8,
_pad: u32,
pub code_size: u64,
pub data_size: u64,
pub bss_size: u64,
pub entry_point: u64,
pub total_size: u64,
}Fields§
§id: u64§format: u32§flags: u32§version: u16§cpu_arch: u8§reserved: u8§_pad: u32Explicit padding (bytes 20..24) so the struct is fully initialised;
keeps code_size at offset 24.
code_size: u64§data_size: u64§bss_size: u64§entry_point: u64§total_size: u64Trait Implementations§
Source§impl Clone for ModuleInfo
impl Clone for ModuleInfo
impl Copy for ModuleInfo
Auto Trait Implementations§
impl Forget for ModuleInfo
impl Freeze for ModuleInfo
impl Move for ModuleInfo
impl RefUnwindSafe for ModuleInfo
impl Send for ModuleInfo
impl Sync for ModuleInfo
impl Unpin for ModuleInfo
impl UnsafeUnpin for ModuleInfo
impl UnwindSafe for ModuleInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more