pub fn render_string(
        &mut self,
        string: &str,
        glyph_cache: &mut GlyphCache,
        color: Rgb,
    ) {
        let line = Line(23);
        let col = Column(0);

        let cells = string.chars()
            .enumerate()
            .map(|(i, c)| RenderableCell {
                line,
                column: col + i,
                c,
                bg: color,
                fg: Rgb { r: 0, g: 0, b: 0 },
                flags: cell::Flags::empty(),
                bg_alpha: 1.0
            })
            .collect::<Vec<_>>();

        self.render_cells(cells.into_iter(), glyph_cache);
    }
/// Render a string in a predefined location. Used for printing render time for profiling and
/// optimization.
Render a string in a predefined location. Used for printing render time for profiling and
optimization.
Render a string in a predefined location . Used for printing render time for profiling and optimization .
pub fn render_string(
        &mut self,
        string: &str,
        glyph_cache: &mut GlyphCache,
        color: Rgb,
    ) {
        let line = Line(23);
        let col = Column(0);
        let cells = string.chars()
            .enumerate()
            .map(|(i, c)| RenderableCell {
                line,
                column: col + i,
                c,
                bg: color,
                fg: Rgb { r: 0, g: 0, b: 0 },
                flags: cell::Flags::empty(),
                bg_alpha: 1.0
            })
            .collect::<Vec<_>>();
        self.render_cells(cells.into_iter(), glyph_cache);
    }
pub fn render_string ( & mut self , string : & str , glyph_cache : & mut GlyphCache , color : Rgb , ) { let line = Line ( 23 ) ; let col = Column ( 0 ) ; let cells = string . chars ( ) . enumerate ( ) . map ( | ( i , c ) | RenderableCell { line , column : col + i , c , bg : color , fg : Rgb { r : 0 , g : 0 , b : 0 } , flags : cell :: Flags :: empty ( ) , bg_alpha : 1.0 } ) . collect :: < Vec < _ > > ( ) ; self . render_cells ( cells . into_iter ( ) , glyph_cache ) ; }
Render a string in a predefined location.
Render a string in a predefined location .
&mut self
string
&str
glyph_cache
&mut GlyphCache
color
Rgb
&mut self
string
&str
glyph_cache
&mut GlyphCache
color
Rgb