utf8

moon add tonyfettes/utf8@0.2.4
Download zip
Version
0.2.4
License
Apache-2.0
Last updated
9 months ago
Downloads
2K
README

#tonyfettes/utf8

#
Malformed

pub suberror Malformed BytesView

#
Utf8

type Utf8

impl Show for Utf8
impl ToJson for Utf8

#
Utf8::of_bytes

#as_free_fn
fn Utf8::of_bytes(bytes : Bytes) -> Utf8 raise Malformed

#
Utf8::of_bytesview

#as_free_fn
fn Utf8::of_bytesview(bytes : BytesView) -> Utf8 raise Malformed

#
Utf8::to_bytes

fn Utf8::to_bytes(self : Utf8) -> Bytes

#
Utf8::to_string

fn Utf8::to_string(self : Utf8) -> String

#
decode

fn decode(bytes : BytesView) -> String raise Malformed

#
decode_lossy

fn decode_lossy(bytes : BytesView) -> String

References :
  • https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/#G66453
  • https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-5/#G40630

#
encode

fn encode(string : StringView) -> Bytes

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io