pub trait ToHandleMut {
    type HandleMut: DerefMut;

    // Required method
    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.

Required Associated Types§

source

type HandleMut: DerefMut

The type of handle to be encapsulated by the OwningHandle.

Required Methods§

source

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

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

Implementations on Foreign Types§

source§

impl<T: 'static> ToHandleMut for RefCell<T>

§

type HandleMut = RefMut<'static, T>

source§

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

Implementors§