pub unsafe extern "C" fn aws_hash_table_move(
to: *mut aws_hash_table,
from: *mut aws_hash_table
)
Expand description
Moves the hash table in ‘from’ to ‘to’. After this move, ‘from’ will be identical to the state of the original ‘to’ hash table, and ‘to’ will be in the same state as if it had been passed to aws_hash_table_clean_up (that is, it will have no memory allocated, and it will be safe to either discard it or call aws_hash_table_clean_up again).
Note that ‘to’ will not be cleaned up. You should make sure that ‘to’ is either uninitialized or cleaned up before moving a hashtable into it.