package thb.jeanluc.adventure.io.text;

/** A run of text carrying a single semantic {@link Style}. */
public record Span(String text, Style style) {
    public Span {
        if (text == null) {
            throw new IllegalArgumentException("text must not be null");
        }
        if (style == null) {
            throw new IllegalArgumentException("style must not be null");
        }
    }
}
