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
.