Skip to main content

rl_lang/docs/entries/stdlib/bitwise/
count_bits.rs

1use crate::docs::entry::FnEntry;
2
3pub static COUNT_BITS: FnEntry = FnEntry {
4    signature: "count_bits(a)",
5    description: "returns the number of set (1) bits in a byte or int value",
6    example: "get std::bitwise::count_bits\n\ncount_bits(7) // 3",
7    expected_output: None,
8    returns: "",
9    errors: None,
10    see_also: &[],
11    since: None,
12};