Expand description
Rut is a small UTF-8 decoding library for applications that need to decode individual characters.
It provides a bytewise decoder, and functions for decoding byte slices.
It is completely no_std
and should provide good performance.[citation needed]
§Conformance
Rut is fully conformant to the specifications and restrictions of the Unicode standard.
Additionally, it follows W3C’s standard for UTF-8 decoding with regards to error signalling.
§Testing
Some tests are in place, however it is not comprehensive yet. However, Rut has been pretty thoroughly fuzzed on random input and passes this stress test for UTF-8 decoders.
§As Seen on TV!
Rut began life, and is still used in, Termiku, a terminal emulator written in Rust.
Structs§
- An iterator that decodes characters from a byte slice.
- A bytewise UTF-8 decoder.
Enums§
- Result type for the
Decoder::decode_byte
method. - The error type returned by all decoding methods.
Functions§
- Creates an iterator for decoding characters from a byte slice.
- Decodes one character from a byte slice, returning a
Result
and the remainder of the slice.