Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-rust-2e
/ BoxedText
Class
BoxedText
Source Code/20-22.rs:25–29 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
23
}
24
}
25
struct BoxedText {
26
text: Text,
27
first: char,
28
last: char,
29
}
30
impl BoxedText {
31
fn with_text_and_borders(
32
text: &str, first: char, last: char)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected