HighlightedText builder
A run of text with some of it marked.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::display::HighlightedText;
Construct
new(text: impl Into<SharedString>) -> SelfOptions
Chain onto the value.
id(ident: impl Into<Ident>) -> Self
hits(hits: impl IntoIterator<Item = Range<usize>>) -> Self
current(index: usize) -> Self
monospace(monospace: bool) -> SelfQueries
Only answer; they change nothing.
published_hits() -> usizeRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.