pub trait RenderString: HasFont {
// Required method
fn text(self: Pin<&Self>) -> PlainOrStyledText;
}Expand description
Trait for an item that represents an string towards the renderer
Required Methods§
fn text(self: Pin<&Self>) -> PlainOrStyledText
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".