[][src]Module artichoke_backend::string

Utilities for working with Ruby Strings.

In Ruby, String is a Vec<u8> with an optional encoding. Strings default to UTF-8 encoding but this does not require the byte vector to contain valid UTF-8.

Artichoke aims to support ASCII, UTF-8, maybe UTF-8, and binary encodings.

Structs

IoWriteError

Error type for write_float_into.

WriteError

Error type for format_unicode_debug_into and format_int_into.

Functions

format_int_into
format_unicode_debug_into

Write a UTF-8 debug representation of a byte slice into the given writer.

write_float_into