pub trait MemoryMut: Sized {
// Required method
fn copy_from_slice(
&mut self,
ptr: GuestPtr<[u8]>,
src: &[u8],
) -> Result<(), GuestError>;
// Provided method
fn write<T>(&mut self, ptr: GuestPtr<T>, value: T) -> Result<(), GuestError>
where T: GuestType { ... }
}Required Methods§
fn copy_from_slice( &mut self, ptr: GuestPtr<[u8]>, src: &[u8], ) -> Result<(), GuestError>
Provided Methods§
fn write<T>(&mut self, ptr: GuestPtr<T>, value: T) -> Result<(), GuestError>where
T: GuestType,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.