pub unsafe trait StablePointer: Deref + Borrow<<Self as Deref>::Target> { }
Expand description

This trait guarantees that, for a type T: StablePointer, given a value t: &'a T:

&**t shall live for at least 'a

i.e., when *t moves, the underlying <T as Deref>::Target does not move

Implementations on Foreign Types§

Implementors§