We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let slots_map_min_slot = *self.slots.keys().min().unwrap_or(&0u64);
+ #[inline(always)] + fn get_slot(slot: u64, slots: &HashMap<u64, SlotData>, min_slot: u64) -> Option<&SlotData> { + if slot < min_slot { + return None; + } + slots.get(&slot) + }
See branch hacking/slotmap-min
The text was updated successfully, but these errors were encountered:
No branches or pull requests
let slots_map_min_slot = *self.slots.keys().min().unwrap_or(&0u64);
See branch hacking/slotmap-min
The text was updated successfully, but these errors were encountered: