MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / display_lossy

Method display_lossy

aiscript-vm/src/string/interned.rs:198–200  ·  view source on GitHub ↗

Display a potentially non-utf8 `String` in a lossy way.

(self)

Source from the content-addressed store, hash-verified

196
197 /// Display a potentially non-utf8 `String` in a lossy way.
198 pub fn display_lossy(self) -> impl fmt::Display + 'gc {
199 display_utf8_lossy(self.as_bytes())
200 }
201
202 /// Debug a potentially non-utf8 `String` in a lossy way.
203 pub fn debug_lossy(self) -> impl fmt::Debug + 'gc {

Callers 1

disassembleMethod · 0.80

Calls 2

display_utf8_lossyFunction · 0.85
as_bytesMethod · 0.80

Tested by

no test coverage detected