[][src]Trait abi_stable::pointer_trait::StableDeref

pub unsafe trait StableDeref: Deref + Sized { }

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.

Explicit non-guarantees:

  • If the pointer is converted by value to another pointer type, the address cannot be relied on being the same, even if it implements StableDeref.

Implementations on Foreign Types

impl<T> StableDeref for Box<T>[src]

impl<T> StableDeref for Arc<T>[src]

impl<'a, T: 'a> StableDeref for &'a T[src]

impl<'a, T: 'a> StableDeref for &'a mut T[src]

Loading content...

Implementors

impl<T> StableDeref for RArc<T>[src]

impl<T> StableDeref for RBox<T>[src]

Loading content...