pub struct MemoryRegistryOps;Expand description
MemoryRegistryOps Ops wrapper around the global memory registry.
Implementations§
Source§impl MemoryRegistryOps
impl MemoryRegistryOps
Sourcepub fn init_memory(
initial_range: Option<(&str, u8, u8)>,
) -> Result<MemoryRegistrySummary, MemoryRegistryError>
pub fn init_memory( initial_range: Option<(&str, u8, u8)>, ) -> Result<MemoryRegistrySummary, MemoryRegistryError>
Initialise registered memory segments and ranges.
- Optionally reserves an initial range for the current crate.
- Applies all deferred range reservations.
- Applies all deferred registrations (sorted by ID).
pub fn export() -> MemoryRegistryView
pub fn export_ranges() -> Vec<(String, MemoryRange)>
pub fn get(id: u8) -> Option<MemoryRegistryEntry>
Auto Trait Implementations§
impl Freeze for MemoryRegistryOps
impl RefUnwindSafe for MemoryRegistryOps
impl Send for MemoryRegistryOps
impl Sync for MemoryRegistryOps
impl Unpin for MemoryRegistryOps
impl UnwindSafe for MemoryRegistryOps
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