pub struct RestrictedMemory<M: Memory> { /* private fields */ }Expand description
RestrictedMemory creates a limited view of another memory. This allows one to divide the main memory into non-intersecting ranges and use different layouts in each region.
Implementations§
Trait Implementations§
Source§impl<M: Clone + Memory> Clone for RestrictedMemory<M>
impl<M: Clone + Memory> Clone for RestrictedMemory<M>
Source§fn clone(&self) -> RestrictedMemory<M>
fn clone(&self) -> RestrictedMemory<M>
Returns a duplicate 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<M: Memory> Memory for RestrictedMemory<M>
impl<M: Memory> Memory for RestrictedMemory<M>
Auto Trait Implementations§
impl<M> Freeze for RestrictedMemory<M>where
M: Freeze,
impl<M> RefUnwindSafe for RestrictedMemory<M>where
M: RefUnwindSafe,
impl<M> Send for RestrictedMemory<M>where
M: Send,
impl<M> Sync for RestrictedMemory<M>where
M: Sync,
impl<M> Unpin for RestrictedMemory<M>where
M: Unpin,
impl<M> UnwindSafe for RestrictedMemory<M>where
M: UnwindSafe,
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