#Rust https://rust-cli.github.io/book/tutorial/output.html `println!`の使い方について。 ```rust println!("This is {}, that is {}", arg1, arg2) ``` 第1引数はフォーマット文字列で、第2引数以降がplaceholderの中身。placeholderは`{}`で0つ以上指定できる。 シンプルな型以外を表示する場合は[[debug representation]]を使う。 ```rust let args: Cli = Cli::from_args(); println!("{:?}", args); ``` [[debug representation]]の対象となる変数の型は`#[derive(Debug)]`が必要。 ```rust #[derive(Debug)] struct Args { id: i32, name: String, } ``` ### Aside - [[Rustで標準エラー出力(stderr)を使う]]