pub struct MemorySection {
pub section_type: SectionType,
pub name: String,
pub base_address: u32,
pub size: u32,
pub alignment: u32,
pub in_flash: bool,
}Expand description
Memory section in the layout
Fields§
§section_type: SectionTypeSection type
name: StringSection name
base_address: u32Base address
size: u32Size in bytes
alignment: u32Alignment requirement
in_flash: boolWhether section is in flash (XIP) or RAM
Implementations§
Source§impl MemorySection
impl MemorySection
Sourcepub fn end_address(&self) -> u32
pub fn end_address(&self) -> u32
Get end address (exclusive)
Sourcepub fn overlaps(&self, other: &MemorySection) -> bool
pub fn overlaps(&self, other: &MemorySection) -> bool
Check if this section overlaps with another
Trait Implementations§
Source§impl Clone for MemorySection
impl Clone for MemorySection
Source§fn clone(&self) -> MemorySection
fn clone(&self) -> MemorySection
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 moreAuto Trait Implementations§
impl Freeze for MemorySection
impl RefUnwindSafe for MemorySection
impl Send for MemorySection
impl Sync for MemorySection
impl Unpin for MemorySection
impl UnsafeUnpin for MemorySection
impl UnwindSafe for MemorySection
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