pub fn cast<T: NumCast, U: NumCast>(n: T) -> U
Cast from one machine scalar to another
let twenty: f32 = num::cast(0x14);
assert_eq!(twenty, 20f32);
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).