You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eric Holk edited this page Jun 21, 2012
·
3 revisions
Rust provides several intrinsic functions. These are called like normal functions, but are translated directly into LLVM code by trans. These are meant to implement low-level, unsafe things in the core libraries. This page attempts to list all the intrinsics, what they do, how to use them, and why they exist. The intrinsics are currently implemented in src/rustc/middle/trans/native.rs.
fn addr_of<T>(val: T) -> *T - Returns the address of a thing. Used to imlpement ptr::addr_of and ptr::mut_addr_of. Use these functions instead.