bitstr
bitstr is just that: a sequence of bytes. It isn't human-readable. Under the hood, everything must be converted to a byte string before it can be stored in a computer.
Which means that a bitstring is a contiguous sequence of bits in memory.
// 1.
let bytes = ;
let bit: &BitStr = from;
// 2.
let bytes = b"Rust";
let bit: &BitStr = from;
// 3.
let bit: &BitStr = from;
let op = bit.contains; // false
// 4.
let bit: &BitStr = from;
let op = bit.contains_u8; // true
TODO
- encode_utf16
- replace
- starts_with, ends_with
- get, get_mut
- get_unchecked, get_unchecked_mut
- slice_unchecked, slice_unchecked_mut