Trait supercow::ext::SharedFrom
[−]
[src]
pub unsafe trait SharedFrom<T> {
fn shared_from(t: T) -> Self;
}Like std::convert::From, but without the blanket implementations that
cause problems for supercow_features!.
Unsafety
The conversion may not invalidate the address returned by
T::const_deref() if T is ConstDeref.
Required Methods
Converts the given T to Self.
Implementors
impl<T> SharedFrom<Rc<T>> for Rc<T>impl<T> SharedFrom<Arc<T>> for Arc<T>impl<'a, T: DefaultFeatures<'a>> SharedFrom<T> for Box<DefaultFeatures<'a> + 'a>impl<'a, T: NonSyncFeatures<'a>> SharedFrom<T> for Box<NonSyncFeatures<'a> + 'a>