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

Method equals

aiscript-vm/src/string/interned.rs:185–187  ·  view source on GitHub ↗
(self, other: &InternedString<'gc>)

Source from the content-addressed store, hash-verified

183impl<'gc> InternedString<'gc> {
184 #[inline]
185 pub fn equals(self, other: &InternedString<'gc>) -> bool {
186 self.stored_hash() == other.stored_hash() && self.as_bytes() == other.as_bytes()
187 }
188
189 pub fn len(self) -> i64 {
190 self.as_bytes().len().try_into().unwrap()

Callers 6

removeFunction · 0.45
indexFunction · 0.45
countFunction · 0.45
dispatch_nextMethod · 0.45
check_argsMethod · 0.45
validate_argsMethod · 0.45

Calls 2

stored_hashMethod · 0.80
as_bytesMethod · 0.80

Tested by

no test coverage detected