Misc low level stuff

Struct Closure

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

The representation of a Rust closure

Trait FailWithCause

Trait for initiating task failure.

Method fail_with

fn fail_with(cause: Self, file: &'static str, line: uint) -> !

Fail the current task, taking ownership of cause

Implementation of FailWithCause for ~str

Method fail_with

fn fail_with(cause: ~str, file: &'static str, line: uint) -> !

Implementation of FailWithCause for &'static str

Method fail_with

fn fail_with(cause: &'static str, file: &'static str, line: uint) -> !

Function begin_unwind_

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

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 min_align_of_val

fn min_align_of_val<T>(_val: &T) -> uint

Returns the ABI-required minimum alignment of the type of the value that _val points to

Function nonzero_size_of

fn nonzero_size_of<T>() -> uint

Returns the size of a type, or 1 if the actual size is zero.

Useful for building structures containing variable-length arrays.

Function nonzero_size_of_val

fn nonzero_size_of_val<T>(_val: &T) -> uint

Returns the size of the type of the value that _val points to

Function pref_align_of

fn pref_align_of<T>() -> uint

Returns the preferred alignment of a type

Function pref_align_of_val

fn pref_align_of_val<T>(_val: &T) -> uint

Returns the preferred alignment of the type of the value that _val points to

Function refcount

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

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

Function size_of

fn size_of<T>() -> uint

Returns the size of a type

Function size_of_val

fn size_of_val<T>(_val: &T) -> uint

Returns the size of the type that _val points to