Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CleanCut/invaders
/ increment_level
Method
increment_level
src/level.rs:14–19 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
12
}
13
14
pub fn increment_level(&mut self) -> bool {
15
if self.level <= MAX_LEVEL {
16
self.level += 1;
17
}
18
self.level == MAX_LEVEL
19
}
20
}
21
22
impl Default for Level {
Callers
3
main
Function · 0.80
should_increment_level_and_return_false
Function · 0.80
should_increment_level_two_times_and_return_true
Function · 0.80
Calls
no outgoing calls
Tested by
2
should_increment_level_and_return_false
Function · 0.64
should_increment_level_two_times_and_return_true
Function · 0.64