Skip to main content

RenderString

Trait RenderString 

Source
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§

Source

fn text(self: Pin<&Self>) -> PlainOrStyledText

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RenderString for (SharedString, Brush)

Source§

fn text(self: Pin<&Self>) -> PlainOrStyledText

Implementors§