Crate unmem

source · []
Expand description

unmem crate contains some interesting functions. I tried to make them as safe as possible. However, remember that even not marked as unsafe they still can be dangerous. All of these functions may cause UB!

Macros

Takes variable of one type and returns it as another type. EXTREMELY UNSAFE. Undefined Behavior or panic guaranteed.

Structs

Mean safe wrapper around raw pointers.

Functions

Internal of transmute macro.

Changes value of immutable variable.

Drops given variable.

Returns value from address.

Returns address from reference.

Gives you a mutable reference from immutable.

Get value in memory related to src.

Analogue of memset.

Writes value to address.

Type Definitions