検索
Results of 1 - 9 of about 9 for immutable (0.003 sec.)
- ミュータビリティ - Rust By Example 日本語版 12942
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...は所有権を移譲した際に変更できます。 fn main() { let immutable_box = Box::new(5u32); println!("immutable_box cont...ains {}", immutable_box); // Mutability error // ミュータビリティエラー...//*immutable_box = 4; // *Move* the box, changing the ownership...とミュータビリティを変更する。 let mut mutable_box = immutable_box; println!("mutable_box contains {}", mutable_b... - https://man.plustar.jp/rust/example/scope/move/mut.html - [similar]
- エイリアス - Rust By Example 日本語版 11162
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...` as mutable because it's currently // borrowed as immutable. // エラー!pointはすでにイミュータブルに借用されて...rrowed_point.x, another_borrow.y, point.z); // The immutable references are no longer used for the rest of the...le_borrow.z = 1; // Error! Can't borrow `point` as immutable because it's currently // borrowed as mutable. //...// Error! Can't print because `println!` takes an immutable reference. // エラー!`println!`はイミュータブルなリ... - https://man.plustar.jp/rust/example/scope/borrow/alias.html - [similar]
- ミュータビリティ - Rust By Example 日本語版 9400
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...book.title, book.year); } fn main() { // Create an immutable Book named `immutabook` // `immutabook`という名のイ...mut mutabook = immutabook; // Immutably borrow an immutable object // イミュータブルなオブジェクトをイミュータ...edition(&mut mutabook); // Error! Cannot borrow an immutable object as mutable // エラー!イミュータブルなオブジ... - https://man.plustar.jp/rust/example/scope/borrow/mut.html - [similar]
- ミュータビリティ - Rust By Example 日本語版 8610
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...することでミュータブルになります。 fn main() { let _immutable_binding = 1; let mut mutable_binding = 1; println!..."After mutation: {}", mutable_binding); // Error! _immutable_binding += 1; // FIXME ^ Comment out this line //... - https://man.plustar.jp/rust/example/variable_bindings/mut.html - [similar]
- 要素の捕捉 - Rust By Example 日本語版 8214
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...time. // // `println!` only requires arguments by immutable reference so it doesn't // impose anything more re...utably again, because the closure only holds // an immutable reference to `color`. // `color`を再びイミュータブ... - https://man.plustar.jp/rust/example/fn/closures/capture.html - [similar]
- Rust By Example 日本語版 8016
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...することでミュータブルになります。 fn main() { let _immutable_binding = 1; let mut mutable_binding = 1; println!..."After mutation: {}", mutable_binding); // Error! _immutable_binding += 1; // FIXME ^ Comment out this line //...let mut _mutable_integer = 7i32; { // Shadowing by immutable `_mutable_integer` // イミュータブルな`_mutable_in...Point::new(1.0, 1.0), }; // Error! `rectangle` is immutable, but this method requires a mutable // object // エ... - https://man.plustar.jp/rust/example/print.html - [similar]
- 値の凍結 - Rust By Example 日本語版 7621
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...let mut _mutable_integer = 7i32; { // Shadowing by immutable `_mutable_integer` // イミュータブルな`_mutable_in... - https://man.plustar.jp/rust/example/variable_bindings/freeze.html - [similar]
- メソッド - Rust By Example 日本語版 7423
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...Point::new(1.0, 1.0), }; // Error! `rectangle` is immutable, but this method requires a mutable // object // エ... - https://man.plustar.jp/rust/example/fn/methods.html - [similar]
- ベクタ型 - Rust By Example 日本語版 7423
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...s.push(4); println!("Vector: {:?}", xs); // Error! Immutable vectors can't grow // エラー!イミュータブルなベクタ... - https://man.plustar.jp/rust/example/std/vec.html - [similar]
PREV
1
NEXT