Misc low level stuff
Closure
- The representation of a Rust closureFailWithCause
- Trait for initiating task failure.of FailWithCause for ~str
of FailWithCause for &'static str
begin_unwind_
log_str
min_align_of
- Returns the ABI-required minimum alignment of a typemin_align_of_val
- Returns the ABI-required minimum alignment of the type of the value that _val
points tononzero_size_of
- Returns the size of a type, or 1 if the actual size is zero.nonzero_size_of_val
- Returns the size of the type of the value that _val
points topref_align_of
- Returns the preferred alignment of a typepref_align_of_val
- Returns the preferred alignment of the type of the value that _val
points torefcount
- Returns the refcount of a shared box (as just before calling this)size_of
- Returns the size of a typesize_of_val
- Returns the size of the type that _val
points tosys::rustrt
Closure
pub struct Closure {
code: *(),
env: *(),
}
The representation of a Rust closure
FailWithCause
Trait for initiating task failure.
fail_with
fn fail_with(cause: Self, file: &'static str, line: uint) -> !
Fail the current task, taking ownership of cause
FailWithCause
for ~str
fail_with
fn fail_with(cause: ~str, file: &'static str, line: uint) -> !
FailWithCause
for &'static str
fail_with
fn fail_with(cause: &'static str, file: &'static str, line: uint) -> !
begin_unwind_
fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> !
log_str
fn log_str<T>(t: &T) -> ~str
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.
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
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.
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
pref_align_of
fn pref_align_of<T>() -> uint
Returns the preferred alignment of a type
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
refcount
fn refcount<T>(t: @T) -> uint
Returns the refcount of a shared box (as just before calling this)
size_of
fn size_of<T>() -> uint
Returns the size of a type
size_of_val
fn size_of_val<T>(_val: &T) -> uint
Returns the size of the type that _val
points to