pub trait MemoryHandle: Clone + Send + 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§

source

fn can_mut(&self) -> bool

Checks if the underlying memory can be safely mutated.

Object Safety§

This trait is not object safe.

Implementors§