pub struct Memory { /* private fields */ }Implementations§
Source§impl Memory
impl Memory
pub fn new() -> Memory
pub fn add_section(self, section: MemorySection) -> Memory
pub fn to_ldmemory(&self) -> String
pub fn to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
Sourcepub fn sections(&self) -> &Vec<MemorySection>
pub fn sections(&self) -> &Vec<MemorySection>
Get a reference to this object’s Sections.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnsafeUnpin for Memory
impl UnwindSafe for Memory
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