Skip to main content

overlay

Function overlay 

Source
pub fn overlay(base: Style, top: Style) -> Style
Expand description

base with top painted over it.

A colour top sets (foreground, background, or underline) replaces the one in base; a colour it leaves unset keeps base’s. Effects add up, because anstyle::Effects has no way to say “not bold”: top can switch an effect on but not off.