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§
Required Methods§
Sourceunsafe fn to_handle_mut(x: *const Self) -> Self::HandleMut
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
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.