fn render_message(&self, screen: &mut Screen) {
        // White foreground, black background.
        let colors = Color2 {
            foreground: BasicColor::White.into(),
            background: BasicColor::Black.into(),
        };
        // Centralized, at the top.
        let style = Style::with_colors(colors).align(1, 2);
        // Writes the text into the buffer.
        screen.styled_text(&self.message, style);
    }
/// Renders the message above the borders.
Renders the message above the borders.
Renders the message above the borders .
fn render_message(&self, screen: &mut Screen) {
        // White foreground, black background.
        let colors = Color2 {
            foreground: BasicColor::White.into(),
            background: BasicColor::Black.into(),
        };
        // Centralized, at the top.
        let style = Style::with_colors(colors).align(1, 2);
        // Writes the text into the buffer.
        screen.styled_text(&self.message, style);
    }
fn render_message ( & self , screen : & mut Screen ) { // White foreground, black background. let colors = Color2 { foreground : BasicColor :: White . into ( ) , background : BasicColor :: Black . into ( ) , } ; // Centralized, at the top. let style = Style :: with_colors ( colors ) . align ( 1 , 2 ) ; // Writes the text into the buffer. screen . styled_text ( & self . message , style ) ; }
Renders the message above the borders.
Renders the message above the borders .
&self
screen
&mut Screen
&self
screen
&mut Screen