fn render_tabs<B: Backend>(f: &mut Frame<'_, B>, app: &mut TuiApp, rect: Rect) {
    let tabs_block = Block::default()
        .title("Traces")
        .title_alignment(Alignment::Left)
        .borders(Borders::ALL)
        .border_type(BorderType::Rounded)
        .style(Style::default());
    let titles: Vec<_> = app
        .trace_info
        .iter()
        .map(|trace| {
            Spans::from(Span::styled(
                &trace.target_hostname,
                Style::default().fg(Color::Green),
            ))
        })
        .collect();
    let tabs = Tabs::new(titles)
        .block(tabs_block.clone())
        .select(app.trace_selected)
        .style(Style::default())
        .highlight_style(
            Style::default()
                .add_modifier(Modifier::BOLD)
                .bg(Color::Black),
        );
    f.render_widget(tabs, rect);
}
/// Render the tabs, one per trace.
Render the tabs, one per trace.
Render the tabs one per trace .
fn render_tabs<B: Backend>(f: &mut Frame<'_, B>, app: &mut TuiApp, rect: Rect) {
    let tabs_block = Block::default()
        .title("Traces")
        .title_alignment(Alignment::Left)
        .borders(Borders::ALL)
        .border_type(BorderType::Rounded)
        .style(Style::default());
    let titles: Vec<_> = app
        .trace_info
        .iter()
        .map(|trace| {
            Spans::from(Span::styled(
                &trace.target_hostname,
                Style::default().fg(Color::Green),
            ))
        })
        .collect();
    let tabs = Tabs::new(titles)
        .block(tabs_block.clone())
        .select(app.trace_selected)
        .style(Style::default())
        .highlight_style(
            Style::default()
                .add_modifier(Modifier::BOLD)
                .bg(Color::Black),
        );
    f.render_widget(tabs, rect);
}
fn render_tabs < B : Backend > ( f : & mut Frame < ' _ , B > , app : & mut TuiApp , rect : Rect ) { let tabs_block = Block :: default ( ) . title ( " " ) . title_alignment ( Alignment :: Left ) . borders ( Borders :: ALL ) . border_type ( BorderType :: Rounded ) . style ( Style :: default ( ) ) ; let titles : Vec < _ > = app . trace_info . iter ( ) . map ( | trace | { Spans :: from ( Span :: styled ( & trace . target_hostname , Style :: default ( ) . fg ( Color :: Green ) , ) ) } ) . collect ( ) ; let tabs = Tabs :: new ( titles ) . block ( tabs_block . clone ( ) ) . select ( app . trace_selected ) . style ( Style :: default ( ) ) . highlight_style ( Style :: default ( ) . add_modifier ( Modifier :: BOLD ) . bg ( Color :: Black ) , ) ; f . render_widget ( tabs , rect ) ; }
Render the tabs, one per trace.
Render the tabs one per trace .
f
&mut Frame<'_, B>
app
&mut TuiApp
rect
Rect