MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / to_str

Method to_str

aiscript-vm/src/string/interned.rs:193–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

191 }
192
193 pub fn to_str(self) -> Result<&'gc str, Utf8Error> {
194 str::from_utf8(self.as_bytes())
195 }
196
197 /// Display a potentially non-utf8 `String` in a lossy way.
198 pub fn display_lossy(self) -> impl fmt::Display + 'gc {

Callers 15

get_or_load_moduleMethod · 0.80
find_module_fileMethod · 0.80
fromMethod · 0.80
is_error_typeMethod · 0.80
serde_from_strFunction · 0.80
serde_from_fileFunction · 0.80
serde_to_fileFunction · 0.80
extract_keyword_argsFunction · 0.80
time_unix_timestampFunction · 0.80
time_format_datetimeFunction · 0.80

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected