Skip to main content

sendable_any_ptr_new

Function sendable_any_ptr_new 

Source
unsafe fn sendable_any_ptr_new(
    ptr: *mut Box<dyn Any>,
) -> Sendable<NonNull<Box<dyn Any>>>
Expand description

Create a new sendable pointer from a raw *mut Box<dyn Any>.

ยงSafety

The pointer must be non-null.