pub trait CLike { fn to_uint(&self) -> uint; fn from_uint(uint) -> Self; }
An interface for casting C-like enum to uint and back.
fn to_uint(&self) -> uint
Converts C-like enum to uint.
fn from_uint(uint) -> Self
Converts uint to C-like enum.
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
).