Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CleanCut/invaders
/ draw
Method
draw
src/shot.rs:40–42 ·
view source on GitHub ↗
(&self, frame: &mut Frame)
Source
from the content-addressed store, hash-verified
38
39
impl Drawable for Shot {
40
fn draw(&self, frame: &mut Frame) {
41
frame[self.x][self.y] = if self.exploding {
'*'
} else {
'|'
};
42
}
43
}
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected