Skip to main content

with_base_style

Function with_base_style 

Source
pub fn with_base_style(text: &str, base: Style) -> String
Expand description

Wraps text in base, keeping base active after any style reset inside the text.

This lets a caller put a single style around a string that already contains styled spans.