fn render_table_row(
    hop: &Hop,
    dns: &DnsResolver,
    is_target: bool,
    address_mode: AddressMode,
    lookup_as_info: bool,
    max_addr: Option<u8>,
) -> Row<'static> {
    let ttl_cell = render_ttl_cell(hop);
    let hostname_cell = render_hostname_cell(hop, dns, address_mode, lookup_as_info, max_addr);
    let loss_pct_cell = render_loss_pct_cell(hop);
    let total_sent_cell = render_total_sent_cell(hop);
    let total_recv_cell = render_total_recv_cell(hop);
    let last_cell = render_last_cell(hop);
    let avg_cell = render_avg_cell(hop);
    let best_cell = render_best_cell(hop);
    let worst_cell = render_worst_cell(hop);
    let stddev_cell = render_stddev_cell(hop);
    let status_cell = render_status_cell(hop, is_target);
    let cells = [
        ttl_cell,
        hostname_cell,
        loss_pct_cell,
        total_sent_cell,
        total_recv_cell,
        last_cell,
        avg_cell,
        best_cell,
        worst_cell,
        stddev_cell,
        status_cell,
    ];
    let row_height = hop
        .addr_count()
        .min(max_addr.unwrap_or(u8::MAX) as usize)
        .max(1) as u16;
    Row::new(cells).height(row_height).bottom_margin(0)
}
/// Render a single row in the table of hops.
Render a single row in the table of hops.
Render a single row in the table of hops .
fn render_table_row(
    hop: &Hop,
    dns: &DnsResolver,
    is_target: bool,
    address_mode: AddressMode,
    lookup_as_info: bool,
    max_addr: Option<u8>,
) -> Row<'static> {
    let ttl_cell = render_ttl_cell(hop);
    let hostname_cell = render_hostname_cell(hop, dns, address_mode, lookup_as_info, max_addr);
    let loss_pct_cell = render_loss_pct_cell(hop);
    let total_sent_cell = render_total_sent_cell(hop);
    let total_recv_cell = render_total_recv_cell(hop);
    let last_cell = render_last_cell(hop);
    let avg_cell = render_avg_cell(hop);
    let best_cell = render_best_cell(hop);
    let worst_cell = render_worst_cell(hop);
    let stddev_cell = render_stddev_cell(hop);
    let status_cell = render_status_cell(hop, is_target);
    let cells = [
        ttl_cell,
        hostname_cell,
        loss_pct_cell,
        total_sent_cell,
        total_recv_cell,
        last_cell,
        avg_cell,
        best_cell,
        worst_cell,
        stddev_cell,
        status_cell,
    ];
    let row_height = hop
        .addr_count()
        .min(max_addr.unwrap_or(u8::MAX) as usize)
        .max(1) as u16;
    Row::new(cells).height(row_height).bottom_margin(0)
}
fn render_table_row ( hop : & Hop , dns : & DnsResolver , is_target : bool , address_mode : AddressMode , lookup_as_info : bool , max_addr : Option < u8 > , ) -> Row < ' static > { let ttl_cell = render_ttl_cell ( hop ) ; let hostname_cell = render_hostname_cell ( hop , dns , address_mode , lookup_as_info , max_addr ) ; let loss_pct_cell = render_loss_pct_cell ( hop ) ; let total_sent_cell = render_total_sent_cell ( hop ) ; let total_recv_cell = render_total_recv_cell ( hop ) ; let last_cell = render_last_cell ( hop ) ; let avg_cell = render_avg_cell ( hop ) ; let best_cell = render_best_cell ( hop ) ; let worst_cell = render_worst_cell ( hop ) ; let stddev_cell = render_stddev_cell ( hop ) ; let status_cell = render_status_cell ( hop , is_target ) ; let cells = [ ttl_cell , hostname_cell , loss_pct_cell , total_sent_cell , total_recv_cell , last_cell , avg_cell , best_cell , worst_cell , stddev_cell , status_cell , ] ; let row_height = hop . addr_count ( ) . min ( max_addr . unwrap_or ( u8 :: MAX ) as usize ) . max ( 1 ) as u16 ; Row :: new ( cells ) . height ( row_height ) . bottom_margin ( 0 ) }
Render a single row in the table of hops.
Render a single row in the table of hops .
hop
&Hop
dns
&DnsResolver
is_target
bool
address_mode
AddressMode
lookup_as_info
bool
max_addr
Option<u8>