検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 15 for integer (0.018 sec.)
値の凍結 - Rust By Example 日本語版 13096
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... るまで変更できません。 fn main() { let mut _mutable_integer = 7i32; { // Shadowing by immutable `_mutable_inte ... ger` // イミュータブルな`_mutable_integer`でシャドーイングする let _mutable_integer = _mutab ... le_integer; // Error! `_mutable_integer` is frozen in this sc ... ope // エラー! `_mutable_integer`はこのスコープでは凍結している。 _mutable_integer ...
https://man.plustar.jp/rust/example/variable_bindings/freeze.html - [similar]
変数束縛 - Rust By Example 日本語版 11268
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... て変数に束縛することができます。 fn main() { let an_integer = 1u32; let a_boolean = true; let unit = (); // co ... py `an_integer` into `copied_integer` // `an_integer`を`copied_in ... teger`へとコピー let copied_integer = an_integer; println!("An integer: {:?}", copied_ ... 警告を抑えましょう。 } 関連キーワード: 変数 , 束縛 , integer , let , 関数 , Result , Rust , By , Example , エラ ...
https://man.plustar.jp/rust/example/variable_bindings.html - [similar]
引数のパース - Rust By Example 日本語版 10693
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... g is the answer. match_args {{increase|decrease}} <integer> Increase or decrease given integer by one."); } f ... r(_) => { eprintln!("error: second argument not an integer"); help(); return; }, }; // parse the command // コ ... ch_args do something error: second argument not an integer usage: match_args <string> Check whether given str ... ing is the answer. match_args {increase|decrease} <integer> Increase or decrease given integer by one. $ ./ma ...
https://man.plustar.jp/rust/example/std_misc/arg/matching.html - [similar]
Rust By Example 日本語版 10606
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 1.0; // Regular annotation // 通常の型指定 let an_integer = 5i32; // Suffix annotation // サフィックスによる ... を選択 let default_float = 3.0; // `f64` let default_integer = 7; // `i32` // A type can also be inferred from ... Cなどの言語のもの とほぼ同じです。 fn main() { // Integer addition // 整数の足し算 println!("1 + 2 = {}", 1u ... 32 + 2); // Integer subtraction // 整数の引き算 println!("1 - 2 = {}", ...
https://man.plustar.jp/rust/example/print.html - [similar]
型キャスティング - Rust By Example 日本語版 8446
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... nversion // エラー! 暗黙的な型変換はできない。 let integer: u8 = decimal; // FIXME ^ Comment out this line // ... ょう。 // Explicit conversion // 明示的な型変換 let integer = decimal as u8; let character = integer as char; ... line println!("Casting: {} -> {} -> {}", decimal, integer, character); // when casting any value to an unsig ...
https://man.plustar.jp/rust/example/types/cast.html - [similar]
タプル - Rust By Example 日本語版 8028
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... プルの中の値を別の変数に束縛することができる。 let (integer, boolean) = pair; (boolean, integer) } // The foll ... element tuple: {:?}", (5u32,)); println!("just an integer: {:?}", (5u32)); //tuples can be destructured to c ...
https://man.plustar.jp/rust/example/primitives/tuples.html - [similar]
RAII - Rust By Example 日本語版 8028
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... しょう。 // raii.rs fn create_box() { // Allocate an integer on the heap // 整数をヒープ上に確保 let _box1 = Bo ... 、メモリは解放される。 } fn main() { // Allocate an integer on the heap // 整数をヒープ上に確保 let _box2 = Bo ... sted scope: // ネストしたスコープ { // Allocate an integer on the heap // 整数をヒープ上に確保 let _box3 = Bo ...
https://man.plustar.jp/rust/example/scope/raii.html - [similar]
構造体 - Rust By Example 日本語版 7697
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... re a tuple struct // タプルをデストラクト let Pair(integer, decimal) = pair; println!("pair contains {:?} and ... {:?}", integer, decimal); } 演習 Rectangle の面積を計算する rect_ ...
https://man.plustar.jp/rust/example/custom_types/structs.html - [similar]
リテラルとオペレータ - Rust By Example 日本語版 7697
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cなどの言語のもの とほぼ同じです。 fn main() { // Integer addition // 整数の足し算 println!("1 + 2 = {}", 1u ... 32 + 2); // Integer subtraction // 整数の引き算 println!("1 - 2 = {}", ...
https://man.plustar.jp/rust/example/primitives/literals.html - [similar]
基本データ型 - Rust By Example 日本語版 7697
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 1.0; // Regular annotation // 通常の型指定 let an_integer = 5i32; // Suffix annotation // サフィックスによる ... を選択 let default_float = 3.0; // `f64` let default_integer = 7; // `i32` // A type can also be inferred from ...
https://man.plustar.jp/rust/example/primitives.html - [similar]
PREV 1 2 NEXT