MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / BoxedText

Class BoxedText

Source Code/20-17.rs:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 let greeting = Text::from("Hello");
14 greeting.draw();
15 struct BoxedText {
16 text: Text,
17 first: char,
18 last: char,
19 }
20 impl BoxedText {
21 fn with_text_and_borders(
22 text: &str, first: char, last: char)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected