検索

phrase: max: clip:
target: order:
Results of 1 - 2 of about 2 for lat (0.008 sec.)
フォーマット - Rust By Example 日本語版 11228
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... er, Display}; struct City { name: &'static str, // Latitude // 緯度 lat: f32, // Longitude // 経度 lon: f ... fmt(&self, f: &mut Formatter) -> fmt::Result { let lat_c = if self.lat >= 0.0 { 'N' } else { 'S' }; let l ... write!(f, "{}: {:.3}°{} {:.3}°{}", self.name, self.lat.abs(), lat_c, self.lon.abs(), lon_c) } } #[derive( ... } fn main() { for city in [ City { name: "Dublin", lat: 53.347778, lon: -6.259722 }, City { name: "Oslo", ...
https://man.plustar.jp/rust/example/hello/print/fmt.html - [similar]
Rust By Example 日本語版 7485
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... の前後に1つずつあれば十分です。 */ // You can manipulate expressions more easily with block comments // th ... ; println!("{1:?} {0:?} is the {actor:?} name.", "Slater", "Christian", actor="actor's"); // `Structure` ... er, Display}; struct City { name: &'static str, // Latitude // 緯度 lat: f32, // Longitude // 経度 lon: f ... fmt(&self, f: &mut Formatter) -> fmt::Result { let lat_c = if self.lat >= 0.0 { 'N' } else { 'S' }; let l ...
https://man.plustar.jp/rust/example/print.html - [similar]
PREV 1 NEXT