Skip to main content

style_at_column

Function style_at_column 

Source
pub fn style_at_column(line: &Line, col: usize) -> Style
Expand description

Returns the style of the span that covers the given display column. Useful in tests for asserting background/foreground colors at a position.