Trait SafeDeref

Source
pub unsafe trait SafeDeref: Deref { }
Expand description

Alternative to the Deref trait. Contrary to Deref, must always return the same object.

Implementations on Foreign Types§

Source§

impl<T: ?Sized> SafeDeref for &T

Source§

impl<T: ?Sized> SafeDeref for Box<T>

Source§

impl<T: ?Sized> SafeDeref for Arc<T>

Implementors§