pub(crate) fn find_const_cache(&mut self, slot: u32) -> Option<Value> {
        let const_version = self.const_version;
        #[cfg(feature = "perf-method")]
        {
            self.const_cache.total += 1;
        }
        match &self.const_cache.get_entry(slot) {
            ConstCacheEntry {
                version,
                val: Some(val),
            } if *version == const_version => Some(*val),
            _ => {
                #[cfg(feature = "perf-method")]
                {
                    self.const_cache.missed += 1;
                }
                None
            }
        }
    }
Search inline constant cache for `slot`.

Return None if not found.
ruruby/src/globals/constants.rs