Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-rust-2e
/ draw
Method
draw
Source Code/20-17.rs:9–11 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
7
Text { characters: text.to_string() }
8
}
9
fn draw(&self) {
10
print!(
"{}"
, self.characters);
11
}
12
}
13
let greeting = Text::from(
"Hello"
);
14
greeting.draw();
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected