pub trait MemoryHandle:
Clone
+ Send
+ Sync
+ Debug {
// Required method
fn can_mut(&self) -> bool;
}Expand description
The MemoryHandle trait is an abstract way to refer to some memory segment. It should not contain actual references to data.
It is responsible for determining if the memory segment can be mutated, for instance by keeping track of a reference count
Required Methods§
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.