//! functions taken, without change, from
//! <https://doc.rust-lang.org/src/core/str/validations.rs.html>
/// Returns the initial codepoint accumulator for the first byte.
/// The first byte is special, only want bottom 5 bits for width 2, 4 bits
/// for width 3, and 3 bits for width 4.
pub const
/// Returns the value of `ch` updated with continuation byte `byte`.
pub const
/// Mask of the value bits of a continuation byte.
pub const CONT_MASK: u8 = 0b0011_1111;