Trait rustc_ap_rustc_data_structures::owning_ref::ToHandleMut[][src]

pub trait ToHandleMut {
    type HandleMut: DerefMut;
    unsafe fn to_handle_mut(x: *const Self) -> Self::HandleMut;
}
Expand description

Trait to implement the conversion of owner to mutable handle for common types.

Associated Types

type HandleMut: DerefMut[src]

The type of handle to be encapsulated by the OwningHandle.

Required methods

unsafe fn to_handle_mut(x: *const Self) -> Self::HandleMut[src]

Given an appropriately-long-lived pointer to ourselves, create a mutable handle to be encapsulated by the OwningHandle.

Implementations on Foreign Types

impl<T: 'static> ToHandleMut for RefCell<T>[src]

type HandleMut = RefMut<'static, T>

unsafe fn to_handle_mut(x: *const Self) -> Self::HandleMut[src]

Implementors