Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algoscienceacademy/RustUI
/ Text
Class
Text
src/components/text.rs:7–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
use super::Component;
6
7
pub struct Text {
8
content: String,
9
style: Style,
10
bounds: Rect,
11
}
12
13
impl Text {
14
pub fn new<S: Into<String>>(content: S) -> Self {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected