Trait owning_ref::ToHandle
source · [−]pub trait ToHandle {
type Handle: Deref;
unsafe fn to_handle(x: *const Self) -> Self::Handle;
}
Expand description
Trait to implement the conversion of owner to handle for common types.
Associated Types
Required methods
unsafe fn to_handle(x: *const Self) -> Self::Handle
unsafe fn to_handle(x: *const Self) -> Self::Handle
Given an appropriately-long-lived pointer to ourselves, create a
handle to be encapsulated by the OwningHandle
.