GhostTextRenderer

Trait GhostTextRenderer 

Source
pub trait GhostTextRenderer: Send + Sync {
    // Required methods
    fn render(&self, ghost_text: &GhostText, style: GhostTextStyle) -> String;
    fn get_styled_text(
        &self,
        ghost_text: &GhostText,
        style: GhostTextStyle,
    ) -> String;
}
Expand description

Ghost text renderer trait for UI integration

Required Methods§

Source

fn render(&self, ghost_text: &GhostText, style: GhostTextStyle) -> String

Render ghost text with specified styling

Source

fn get_styled_text( &self, ghost_text: &GhostText, style: GhostTextStyle, ) -> String

Get the styled representation of ghost text

Implementors§