Skip to content

InvalidUtf8

[Source]

Returned by methods (not raised by ? partial constructors) when the input bytes fail UTF-8 validation. The offset field points at the first ill-formed byte per RFC 3629.

class val InvalidUtf8 is
  Stringable box

Implements


Constructors

create

[Source]

new val create(
  offset': USize val)
: InvalidUtf8 val^

Parameters

Returns


Public fields

let offset: USize val

[Source]


Public Functions

string

[Source]

fun box string()
: String iso^

Returns