Module handles

Source
Expand description

This module provides structs that use lifetimes to couple bounds checking and space availability checking and detaching those from actual slice reading/writing.

At present, the internals of the implementation are safe code, so the bound checks currently also happen on read/write. Once this code works, the plan is to replace the internals with unsafe code that omits the bound check at the read/write time.

Structsยง

BigEndian
ByteDestination
ByteFourHandle
ByteOneHandle
ByteReadHandle
ByteSource
ByteThreeHandle
ByteTwoHandle
ByteUnreadHandle
LittleEndian
UnalignedU16Slice ๐Ÿ”’
Utf8AstralHandle
Utf8BmpHandle
Utf8Destination
Utf8ReadHandle
Utf8Source
Utf8UnreadHandle
Utf16AstralHandle
Utf16BmpHandle
Utf16Destination
Utf16ReadHandle
Utf16Source
Utf16UnreadHandle

Enumsยง

CopyAsciiResult
NonAscii
Space
Unicode

Traitsยง

Endian

Functionsยง

convert_unaligned_utf16_to_utf8 ๐Ÿ”’
copy_unaligned_basic_latin_to_ascii ๐Ÿ”’
copy_unaligned_basic_latin_to_ascii_alu ๐Ÿ”’
swap_if_opposite_endian ๐Ÿ”’