fn write_styled_slice<P>(
        &mut self,
        slice: &TermString,
        style: &Style<P>,
        cursor: &mut Vec2,
    ) where
        P: PairTransformer,
    {
        for grapheme in slice {
            self.update(*cursor, |tile| {
                let colors = style.colors.transform_pair(tile.colors);
                *tile = Tile { grapheme: grapheme.clone(), colors };
            });
            cursor.x += 1;
        }
    }
/// Writes a slice using the given style. It should fit in one line.
Writes a slice using the given style. It should fit in one line.
Writes a slice using the given style . It should fit in one line .
fn write_styled_slice<P>(
        &mut self,
        slice: &TermString,
        style: &Style<P>,
        cursor: &mut Vec2,
    ) where
        P: PairTransformer,
    {
        for grapheme in slice {
            self.update(*cursor, |tile| {
                let colors = style.colors.transform_pair(tile.colors);
                *tile = Tile { grapheme: grapheme.clone(), colors };
            });
            cursor.x += 1;
        }
    }
fn write_styled_slice < P > ( & mut self , slice : & TermString , style : & Style < P > , cursor : & mut Vec2 , ) where P : PairTransformer , { for grapheme in slice { self . update ( * cursor , | tile | { let colors = style . colors . transform_pair ( tile . colors ) ; * tile = Tile { grapheme : grapheme . clone ( ) , colors } ; } ) ; cursor . x += 1 ; } }
Writes a slice using the given style.
Writes a slice using the given style .
&mut self
slice
&TermString
style
&Style<P>
cursor
&mut Vec2
&mut self
slice
&TermString
style
&Style<P>
cursor
&mut Vec2