A comprehensive collection of reusable TUI components for ratatui including resizable splits, tree views, markdown rendering, toast notifications, dialogs, and terminal embedding
//! Source line model for code-widget parsing.
/// A raw source line with one-based line metadata.
#[derive(Debug, Clone, PartialEq, Eq)]pubstructCodeLine{/// One-based source line number.
pubnumber:usize,
/// Raw source text.
pubtext: String,
}implCodeLine{/// Creates a source line model.
pubfnnew(number:usize, text: impl Into<String>)->Self{Self{
number,
text: text.into(),}}}