Misc low level stuff

Type FreeGlue

type FreeGlue = &fn(*TypeDesc, *c_void)

Enum TypeDesc

Variants

Struct Closure

pub struct Closure {
    code: *(),
    env: *(),
}

The representation of a Rust closure

Function begin_unwind

fn begin_unwind(msg: ~str, file: ~str, line: uint) -> !

Initiate task failure

Function begin_unwind_

fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> !

Function get_type_desc

fn get_type_desc<T>() -> *TypeDesc

Returns a pointer to a type descriptor.

Useful for calling certain function in the Rust runtime or otherwise performing dark magick.

Function log_str

fn log_str<T>(t: &T) -> ~str

Function min_align_of

fn min_align_of<T>() -> uint

Returns the ABI-required minimum alignment of a type

This is the alignment used for struct fields. It may be smaller than the preferred alignment.

Function pref_align_of

fn pref_align_of<T>() -> uint

Returns the preferred alignment of a type

Function refcount

fn refcount<T>(t: @T) -> uint

Returns the refcount of a shared box (as just before calling this)

Function shape_eq

fn shape_eq<T: Eq>(x1: &T, x2: &T) -> bool

Compares contents of two pointers using the default method. Equivalent to *x1 == *x2. Useful for hashtables.

Function shape_le

fn shape_le<T: Ord>(x1: &T, x2: &T) -> bool

Function shape_lt

fn shape_lt<T: Ord>(x1: &T, x2: &T) -> bool

Function size_of

fn size_of<T>() -> uint

Returns the size of a type