macro_rules! spans {
($($s:expr),* $(,)?) => { ... };
}Expand description
Builds Vec<Span> from strings and spans.
ยงExample
use tern_sdk::{spans, ui};
let label = spans!["Waiting for ", ui::span("CI").style("strong")];
assert_eq!(label.len(), 2);