Available on crate feature
bigendian only.Expand description
BigEndianBitString functions for specific integer type
Constants§
- ELEMENT_
BITS - bits in a single element
Functions§
- element_
contains - check whether another bit string
othershares the firstprefixbits withvalue - element_
flip - Flips the
ndxth bit. - element_
get - Get the
ndxth bit. - element_
inc - increment from right; don’t touch first
prefixbits; returns true on overflow - element_
is_ false_ from - Whether all bits from [ndx..] are
false(0). - element_
is_ true_ from - Whether all bits from [ndx..] are
true(1). - element_
set - Set the
ndxth bit tobit. - element_
set_ false_ from - Set all bits from [ndx..] to
false(0). - element_
set_ true_ from - Set all bits from [ndx..] to
true(1). - element_
shared_ prefix_ len - Length of the longest shared prefix of two bit strings.
- make_
element_ flip - Flips the
ndxth bit. - make_
element_ inc - increment from right; don’t touch first
prefixbits; returns true on overflow - make_
element_ set - Set the
ndxth bit tobit. - make_
element_ set_ false_ from - Set all bits from [ndx..] to
false(0). - make_
element_ set_ true_ from - Set all bits from [ndx..] to
true(1). - mask
- integer with single bit set. bit 0 is the highest bit (big
endian). Wraps at
ELEMENT_BITS. - slice_
contains - check whether another bit string
othershares the firstprefixbits withslice - slice_
flip - Flips the
ndxth bit. - slice_
get - Get the
ndxth bit. - slice_
inc - increment from right; don’t touch first
prefixbits; returns true on overflow - slice_
is_ false_ from - Whether all bits from [ndx..] are
false(0). - slice_
is_ true_ from - Whether all bits from [ndx..] are
true(1). - slice_
set - Set the
ndxth bit tobit. - slice_
set_ false_ from - Set all bits from [ndx..] to
false(0). - slice_
set_ true_ from - Set all bits from [ndx..] to
true(1). - slice_
shared_ prefix_ len - Length of the longest shared prefix of two bit strings.