[−][src]Trait adapton::catalog::bitstring::BitString
Associated Constants
Loading content...Required methods
fn pow(_: i64, _: i64) -> i64
fn flip(_: i64, _: i64) -> i64
fn is_set(_: i64, _: i64) -> bool
fn prepend(_: i64, _: BS) -> BS
fn length(_: BS) -> i64
fn shift_left(_: BS, _: i64) -> BS
Implementors
impl BitString for BS
[src]
fn pow(b: i64, n: i64) -> i64
[src]
pow(b, n)
yields b^n
fn flip(i: i64, b: i64) -> i64
[src]
flip(i, b)
toggles the i
th bit of b
.
fn is_set(i: i64, b: i64) -> bool
[src]
is_set(i, b)
returns true if the i
th bit of b
is set
fn prepend(b: i64, bs: BS) -> BS
[src]
prepend(b, bs)
prepends the bit b
onto the bitstring bs
.
b
must be either 0
or 1
.
fn length(bs: BS) -> i64
[src]
Returns the length of the bitstring bs
.
fn shift_left(bs: BS, i: i64) -> BS
[src]
Performs a logical shift left on the bitstring bs
.
const MAX_LEN: i64
[src]
The maximum supported length of a bitstring is 30 bits.