検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 193 for self (0.049 sec.)
New Type Idiom - Rust By Example 日本語版 6171
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... 4); struct Days(i64); impl Years { pub fn to_days(&self) -> Days { Days(self.0 * 365) } } impl Days { /// ... truncates partial years pub fn to_years(&self) -> Years { Years(self.0 / 365) } } fn old_enough( ...
https://man.plustar.jp/rust/example/generics/new_types.html - [similar]
メソッド - Rust By Example 日本語版 6127
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... mpl of Val // Valに対してimpl impl Val { fn value(&self) -> &f64 { &self.val } } // impl of GenVal for a g ... ドをGenValに対して実装 impl<T> GenVal<T> { fn value(&self) -> &T { &self.gen_val } } fn main() { let x = Val ...
https://man.plustar.jp/rust/example/generics/impl.html - [similar]
Where句 - Rust By Example 日本語版 6127
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... t::Debug; trait PrintInOption { fn print_in_option(self); } // Because we would otherwise have to express ... using the wrong bound. // プリントされるのが`Some(self)`であるため、この関数の // ジェネリック境界として` ...
https://man.plustar.jp/rust/example/generics/where.html - [similar]
エラーをラップする - Rust By Example 日本語版 6019
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... or), } impl fmt::Display for DoubleError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *s ... } } impl error::Error for DoubleError { fn source(&self) -> Option<&(dyn error::Error + 'static)> { match ...
https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
ジェネリック境界 - Rust By Example 日本語版 5964
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... レイト use std::fmt::Debug; trait HasArea { fn area(&self) -> f64; } impl HasArea for Rectangle { fn area(&s ... elf) -> f64 { self.length * self.height } } #[derive(Debug)] struct R ...
https://man.plustar.jp/rust/example/generics/bounds.html - [similar]
Returning Traits with dyn - Rust By Example 日本語版 5856
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... it Animal { // Instance method signature fn noise(&self) -> &'static str; } // Implement the `Animal` trai ... t for `Sheep`. impl Animal for Sheep { fn noise(&self) -> &'static str { "baaaaah!" } } // Implement the ...
https://man.plustar.jp/rust/example/trait/dyn.html - [similar]
ドキュメンテーション - Rust By Example 日本語版 5758
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... Hello, [name]" /// と話しかけます。 pub fn hello(& self) { println!("Hello, {}!", self.name); } } fn main( ... from the futures-rs library #[doc(hidden)] pub use self::async_await::*; For documentation, rustdoc is wid ...
https://man.plustar.jp/rust/example/meta/doc.html - [similar]
Traits - Rust By Example 日本語版 5649
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... mpl<'a> Default for Borrowed<'a> { fn default() -> Self { Self { x: &10, } } } fn main() { let b: Borrowed ...
https://man.plustar.jp/rust/example/scope/lifetime/trait.html - [similar]
Stringとの型変換 - Rust By Example 日本語版 5595
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... dius: i32 } impl fmt::Display for Circle { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f ... , "Circle of radius {}", self.radius) } } fn main() { let circle = Circle { radi ...
https://man.plustar.jp/rust/example/conversion/string.html - [similar]
TryFromおよびTryInto - Rust By Example 日本語版 5595
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ック 10.2. 構造体の場合 10.3. use宣言 10.4. super と self 10.5. ファイルの階層構造 11. クレート ❱ 11.1. Crea ... ロード 17.1.3. 繰り返し 17.2. DRY (Don't Repeat Yourself) 17.3. Domain Specific Languages (ドメイン特化言語 ... type Error = (); fn try_from(value: i32) -> Result<Self, Self::Error> { if value % 2 == 0 { Ok(EvenNumber( ...
https://man.plustar.jp/rust/example/conversion/try_from_try_into.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 NEXT