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

Method len

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

Source from the content-addressed store, hash-verified

187 }
188
189 pub fn len(self) -> i64 {
190 self.as_bytes().len().try_into().unwrap()
191 }
192
193 pub fn to_str(self) -> Result<&'gc str, Utf8Error> {
194 str::from_utf8(self.as_bytes())

Callers 15

check_nextMethod · 0.80
scan_numberMethod · 0.80
addMethod · 0.80
fmtMethod · 0.80
serializeMethod · 0.80
code_sizeMethod · 0.80
add_constantMethod · 0.80
disassembleMethod · 0.80
setMethod · 0.80
newMethod · 0.80
generate_stmtMethod · 0.80
generate_exprMethod · 0.80

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected