pub suberror Malformed @moonbitlang/core/bytes.ViewView
type Utf8
fn Utf8::to_bytes(self : Utf8) -> Bytes
fn Utf8::to_string(self : Utf8) -> String
fn decode(bytes : @moonbitlang/core/bytes.ViewView) -> String raise Malformed
fn decode_lossy(bytes : @moonbitlang/core/bytes.ViewView, ignore_bom? : Bool) -> String
fn encode(string : @moonbitlang/core/string.ViewView) -> Bytes
fn new(bytes : Bytes) -> Utf8 raise Malformed
Install
Powered by MoonBit
© 2026 mooncakes.io