MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / TextSegment

Class TextSegment

src/graphics/text.rs:132–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132pub struct TextSegment<'a> {
133 pub content: Cow<'a, str>,
134 pub color: Color,
135}
136
137impl<'a> TextSegment<'a> {
138 pub fn new(content: impl Into<Cow<'a, str>>) -> TextSegment<'a> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected