#[repr(align(64))]struct Utf8Data {
table: [u8; 384],
}Fields§
§table: [u8; 384]Implementations§
Source§impl Utf8Data
impl Utf8Data
Sourceconst fn lookup(&self, first: u8, second: u8) -> u8
const fn lookup(&self, first: u8, second: u8) -> u8
The table lookup for backing prefix checks.
§Safety-usable invariant
The return value is 0 iff first and second form a prefix of a
well-formed multi-byte UTF-8 sequence (including a complete two-byte
sequence).
The lowest two bits are always 0.
Auto Trait Implementations§
impl Freeze for Utf8Data
impl RefUnwindSafe for Utf8Data
impl Send for Utf8Data
impl Sync for Utf8Data
impl Unpin for Utf8Data
impl UnsafeUnpin for Utf8Data
impl UnwindSafe for Utf8Data
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more