検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 10 for long (0.028 sec.)
スコープとシャドーイング - Rust By Example 日本語版 12514
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... function // この変数はmain関数内が生息域です。 let long_lived_binding = 1; // This is a block, and has a s ... コープ外の同名の変数を *シャドーイング* します。 let long_lived_binding = 5_f32; println!("inner long: {}", ... / FIXME ^ コメントアウトしましょう println!("outer long: {}", long_lived_binding); // This binding also *s ... グも以前に定義した変数を *シャドーイング* します let long_lived_binding = 'a'; println!("outer long: {}", lo ...
https://man.plustar.jp/rust/example/variable_bindings/scope.html - [similar]
タプル - Rust By Example 日本語版 11977
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... of different types // 様々な型を値に持つタプル let long_tuple = (1u8, 2u16, 3u32, 4u64, -1i8, -2i16, -3i32 ... クスを用いて、タプル内の要素を参照できる。 println!("long tuple first value: {}", long_tuple.0); println!("l ... ong tuple second value: {}", long_tuple.1); // Tuples can be tuple members // タプル ... ("tuple of tuples: {:?}", tuple_of_tuples); // But long Tuples cannot be printed // しかし長すぎるタプルは ...
https://man.plustar.jp/rust/example/primitives/tuples.html - [similar]
Rust By Example 日本語版 9814
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ks the same way. This is a bit more verbose and no longer recommended, but you may still see it in older R ... me: &'static str, // Latitude // 緯度 lat: f32, // Longitude // 経度 lon: f32, } impl Display for City { / ... of different types // 様々な型を値に持つタプル let long_tuple = (1u8, 2u16, 3u32, 4u64, -1i8, -2i16, -3i32 ... クスを用いて、タプル内の要素を参照できる。 println!("long tuple first value: {}", long_tuple.0); println!("l ...
https://man.plustar.jp/rust/example/print.html - [similar]
スタティックライフタイム - Rust By Example 日本語版 8634
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... string` goes out of scope, the reference // can no longer be used, but the data remains in the binary. // ... s. Eg. the receiver can hold on to the type for as long as they want and it will never become invalid unti ... ler will tell you: error[E0597]: `i` does not live long enough --> src/lib.rs:15:15 | 15 | print_it(&i); | ... -------^^-- | | | | | borrowed value does not live long enough | argument requires that `i` is borrowed fo ...
https://man.plustar.jp/rust/example/scope/lifetime/static_lifetime.html - [similar]
明示的アノテーション - Rust By Example 日本語版 7991
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... `. These two lifetimes must both be at // least as long as the function `print_refs`. // `print_refs`は`i3 ... <'a>() { let _x = 12; // ERROR: `_x` does not live long enough // エラー: `_x`の寿命が短すぎる。 let y: &' ... of `y`. A short lifetime cannot be coerced into a longer one. // `&_x`のライフタイムは`y`のそれよりも短い ... ords, the lifetime of `four` and `nine` must // be longer than that of `print_refs`. // 借用された変数の寿 ...
https://man.plustar.jp/rust/example/scope/lifetime/explicit.html - [similar]
文字列 - Rust By Example 日本語版 7991
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... lled {}", unicode_codepoint, character_name ); let long_string = "String literals can span multiple lines. ... n here ->\ <- can be escaped too!"; println!("{}", long_string); } Sometimes there are just too many chara ... is no limit for the number of #s you can use. let longer_delimiter = r###"A string with "# in it. And eve ... n "##!"###; println!("{}", longer_delimiter); } Want a string that's not UTF-8? (R ...
https://man.plustar.jp/rust/example/std/str.html - [similar]
圧縮 - Rust By Example 日本語版 7669
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 'a: 'b, 'b>` reads as lifetime `'a` is at least as long as `'b`. // Here, we take in an `&'a i32` and retu ... -> &'b i32 { first } fn main() { let first = 2; // Longer lifetime // 長いライフタイム { let second = 3; / ...
https://man.plustar.jp/rust/example/scope/lifetime/lifetime_coercion.html - [similar]
列挙型 - Rust By Example 日本語版 7562
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... e can refer to each variant via its alias, not its long and inconvenient // name. // 長くて不便な列挙型の名 ...
https://man.plustar.jp/rust/example/custom_types/enum.html - [similar]
if let - Rust By Example 日本語版 7562
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... optional { Some(i) => { println!("This is a really long string and `{:?}`", i); // ^ Needed 2 indentations ...
https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
関数 - Rust By Example 日本語版 7562
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... with lifetime `'a` which must live // at least as long as the function. // 引数として`'a`のライフタイムで ... m("foo") } // The above is invalid: `'a` must live longer than the function. // Here, `&String::from("foo" ...
https://man.plustar.jp/rust/example/scope/lifetime/fn.html - [similar]
PREV 1 NEXT