Skip to main content

push_separator

Function push_separator 

Source
pub fn push_separator(
    lines: &mut Vec<Line<'static>>,
    entry: &RenderEntry<'_>,
    width: usize,
)
Expand description

Push a dim horizontal rule into lines based on the entry type.

ยงExamples

use codetether_agent::tui::ui::chat_view::separator::push_separator;
use codetether_agent::tui::ui::tool_panel::RenderEntry;
let entry = RenderEntry::default();
let mut lines: Vec<ratatui::text::Line<'static>> = Vec::new();
push_separator(&mut lines, &entry, 20);
assert_eq!(lines.len(), 1);