std::mem

This module performs memory handling functions.

This module is used to query size and alignment types, initialization, and the manipulation of memory.

Structs, Traits, and Enums

  • Functionsalign_of (returns alignment in memory of type), align_of_val (minimum alignment of type of value val points to), drop (disposes), forget (leaves a value to void, takes ownership but doesn't run the destructor), replace (replaces the value at a mut location with a new one, returns the old value but doesn't de-initialize or copy either one), size_of (returns size of type in bytes), size_of_val (returns the size of a value in bytes), swap (swaps the values of two mut locations; must be of the same type), transmute (unsafely transforms a value of one type into another), transmute_copy (interprets src as &T, then reads src without moving the contained value), uninitialized (bypasses Rust's memory initialization requirement), and zeroed (creates a value initialized to zero).
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset