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§
Sourcefn render(&self, ghost_text: &GhostText, style: GhostTextStyle) -> String
fn render(&self, ghost_text: &GhostText, style: GhostTextStyle) -> String
Render ghost text with specified styling
Sourcefn get_styled_text(
&self,
ghost_text: &GhostText,
style: GhostTextStyle,
) -> String
fn get_styled_text( &self, ghost_text: &GhostText, style: GhostTextStyle, ) -> String
Get the styled representation of ghost text