Struct ds_rom::rom::raw::AutoloadInfo
source · #[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<'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 Serialize for AutoloadInfo
impl Serialize for AutoloadInfo
impl Copy for AutoloadInfo
impl Pod 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§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)