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

Method stored_hash

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

Source from the content-addressed store, hash-verified

141 }
142
143 pub fn stored_hash(self) -> u64 {
144 self.0.hash
145 }
146
147 pub fn as_bytes(self) -> &'gc [u8] {
148 // SAFETY: `&'gc [u8]` has the correct lifetime because `Gc::as_ref` also returns `&'gc T`.

Callers 3

equalsMethod · 0.80
hashMethod · 0.80
internMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected