[][src]Crate rut

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

Tests are largely not implemented yet (aside from documentation examples).
However, Rut has been extensively fuzzed 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

Decode

An iterator that decodes characters from a byte slice.

Decoder

A bytewise UTF-8 decoder.

Enums

DecoderResult

Result type for the Decoder::decode_byte method.

Error

The error type returned by all decoding methods.

Functions

decode

Creates an iterator for decoding characters from a byte slice.

decode_one

Decodes one character from a byte slice, returning a Result and the remainder of the slice.