#[repr(C)]pub struct AutoloadInfo {
pub base_address: u32,
pub code_size: u32,
pub bss_size: u32,
}Expand description
Info about an autoload block.
Fields§
§base_address: u32Base address of the autoload module.
code_size: u32Size of the module’s initialized area.
bss_size: u32Size of the module’s uninitialized area.
Implementations§
Source§impl AutoloadInfo
impl AutoloadInfo
Sourcepub fn borrow_from_slice(data: &[u8]) -> Result<&[Self], RawAutoloadInfoError>
pub fn borrow_from_slice(data: &[u8]) -> Result<&[Self], RawAutoloadInfoError>
Reinterprets a &[u8] as a slice of AutoloadInfo.
§Errors
This function will return an error if the input has the wrong size or alignment.
Sourcepub fn kind(&self) -> AutoloadKind
pub fn kind(&self) -> AutoloadKind
Returns the kind of this AutoloadInfo.
Sourcepub fn display(&self, indent: usize) -> DisplayAutoloadInfo<'_>
pub fn display(&self, indent: usize) -> DisplayAutoloadInfo<'_>
Creates a DisplayAutoloadInfo which implements Display.
Trait Implementations§
Source§impl Clone for AutoloadInfo
impl Clone for AutoloadInfo
Source§fn clone(&self) -> AutoloadInfo
fn clone(&self) -> AutoloadInfo
Returns a copy of the value. Read more
1.0.0 · 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 AutoloadInfo
impl Debug for AutoloadInfo
Source§impl<'de> Deserialize<'de> for AutoloadInfo
impl<'de> Deserialize<'de> for AutoloadInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for AutoloadInfo
impl Ord for AutoloadInfo
Source§fn cmp(&self, other: &AutoloadInfo) -> Ordering
fn cmp(&self, other: &AutoloadInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AutoloadInfo
impl PartialEq for AutoloadInfo
Source§impl PartialOrd for AutoloadInfo
impl PartialOrd for AutoloadInfo
Source§impl Serialize for AutoloadInfo
impl Serialize for AutoloadInfo
impl Copy for AutoloadInfo
impl Eq for AutoloadInfo
impl Pod for AutoloadInfo
impl StructuralPartialEq for AutoloadInfo
Auto Trait Implementations§
impl Freeze for AutoloadInfo
impl RefUnwindSafe for AutoloadInfo
impl Send for AutoloadInfo
impl Sync for AutoloadInfo
impl Unpin for AutoloadInfo
impl UnwindSafe for AutoloadInfo
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.