fn print_platform_entry(platform: &Platform) {
    print!(
        "| {:width$} | ",
        "[".to_owned() + platform.target_triple + "]",
        width = TARGET_TRIPLE_WIDTH + 2 // add extra width for link brackets
    );

    print!(
        "{:width$} | ",
        platform.target_arch.as_str(),
        width = TARGET_ARCH_WIDTH
    );

    print!(
        "{:width$} | ",
        platform.target_os.as_str(),
        width = TARGET_OS_WIDTH
    );

    let target_env = platform
        .target_env
        .map(|env| env.as_str())
        .unwrap_or("\"\"");

    println!("{:width$} |", target_env, width = TARGET_ENV_WIDTH);
}
/// Print an entry in a table
Print an entry in a table
Print an entry in a table
fn print_platform_entry(platform: &Platform) {
    print!(
        "| {:width$} | ",
        "[".to_owned() + platform.target_triple + "]",
        width = TARGET_TRIPLE_WIDTH + 2 // add extra width for link brackets
    );
    print!(
        "{:width$} | ",
        platform.target_arch.as_str(),
        width = TARGET_ARCH_WIDTH
    );
    print!(
        "{:width$} | ",
        platform.target_os.as_str(),
        width = TARGET_OS_WIDTH
    );
    let target_env = platform
        .target_env
        .map(|env| env.as_str())
        .unwrap_or("\"\"");
    println!("{:width$} |", target_env, width = TARGET_ENV_WIDTH);
}
fn print_platform_entry ( platform : & Platform ) { print ! ( " " " " to_owned ( ) platform target_triple " " width TARGET_TRIPLE_WIDTH 2 // add extra width for link brackets ) ; print ! ( " " platform target_arch as_str ( ) width TARGET_ARCH_WIDTH ) ; print ! ( " " platform target_os as_str ( ) width TARGET_OS_WIDTH ) ; let target_env = platform . target_env . map ( | env | env . as_str ( ) ) . unwrap_or ( " \" \" " ) ; println ! ( " " target_env width TARGET_ENV_WIDTH ) ; }
Print an entry in a table
Print an entry in a table
platform
&Platform
platform
&Platform