Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Every container key is smaller than the target_key. In this case we 'wrap around' the
- // table and select the first element.
- if (closest_key == std::u32::MAX) {
- let result = self.containers.get_first();
- match result {
- None => {
- return Err("Did not find first entry.");
- }
- Some((_, entry)) => {
- let container_id = &entry.id;
- return Ok(container_id);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement