pub fn to_bit(v: bool) -> u8
Convert a bool
to a u8
.
rusti> std::bool::to_bit(true)
1
rusti> std::bool::to_bit(false)
0
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
).