module
unsafe_pointer
Implement a generic unsafe pointer type.
You can import these APIs from the memory
package. For example:
from memory import UnsafePointer
Structs
-
UnsafePointer
: This is a pointer type that can point to any generic value that is movable.
Functions
-
destroy_pointee
: Destroy the pointed-to value. -
move_from_pointee
: Move the value at the pointer out. -
initialize_pointee_move
: Emplace a new value into the pointer location, moving fromvalue
. -
initialize_pointee_copy
: Emplace a copy ofvalue
into the pointer location. -
move_pointee
: Moves the valuesrc
points to into the memory location pointed to bydest
.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?