Lyricdev
GitHub

struct Utf8Error

pub struct Utf8Error :: [Error]

Conforms to Error.

The error string.fromUtf8 throws when the bytes are no well-formed UTF-8.

From offset on the bytes hold an overlong form, a surrogate, a value beyond U+10FFFF, a byte that begins nothing, or a sequence cut short.

Fields

pub offset: int

The first byte that is no well-formed UTF-8.

Methods

pub fn message(): string