[−][src]Trait abi_stable::pointer_trait::StableDeref
Trait for pointers that:
-
Point to a single location in memory,even after being moved.
-
Deref::deref always returns the same address (for the same pointer).
-
If it implements DerefMut,it always returns the same memory address.
-
The inline layout of the pointer cannot change depending on its (Sized) referent.
Explicit non-guarantees:
- If the pointer is converted by value to another pointer type
(ie:going from RBox
to Box ,RArc to Arc ), the address cannot be relied on being the same, even if it implements StableDeref.