pub trait ToBytes { fn to_bytes(&self, lsb0: bool) -> ~[u8]; }
A trait for converting a value to a list of bytes.
fn to_bytes(&self, lsb0: bool) -> ~[u8]
Converts the current value to a list of bytes. This is equivalent to invoking iter_bytes on a type and collecting all yielded values in an array
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
).