検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 193 for type (0.039 sec.)
クレート - Rust By Example 日本語版 7714
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... l Navy Ayu Rust By Example 日本語版 クレート crate_type アトリビュートは、そのクレートがライブラリ、バイナ ... wever, it is important to note that both the crate_type and crate_name attributes have no effect whatsoeve ... Rust projects, this means real-world uses of crate_type and crate_name are relatively limited. // This cra ...
https://man.plustar.jp/rust/example/attribute/crate.html - [similar]
エイリアス - Rust By Example 日本語版 7638
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... Coal Navy Ayu Rust By Example 日本語版 エイリアス type 文を使用することで既存の型に新しい名前( alias )を付 ... 4`. // `NanoSecond` を `u64`の別名として使用する。 type NanoSecond = u64; type Inch = u64; // Use an attri ... 抑えるアトリビュートを使用。 #[allow(non_camel_case_types)] type u64_t = u64; // TODO ^ Try removing the at ...
https://man.plustar.jp/rust/example/types/alias.html - [similar]
メソッド - Rust By Example 日本語版 6953
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... ![allow(unused)] fn main() { struct S; // Concrete type `S` // 具象型`S` struct GenericVal<T>(T); // Gener ... ic type `GenericVal` // ジェネリック型`GenericVal` // impl ... of GenericVal where we explicitly specify type parameters: // 型パラメータを指定したうえで、Gener ...
https://man.plustar.jp/rust/example/generics/impl.html - [similar]
テストケース: 連結リスト - Rust By Example 日本語版 6649
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... / 空リストの作成。 fn new() -> List { // `Nil` has type `List` // `Nil` は `List`型を持つ。 Nil } // Consu ... pend(self, elem: u32) -> List { // `Cons` also has type List // この`Cons` 自体も、その第2要素もどちらもli ... // depends on the variant of `self` // `self` has type `&List`, and `*self` has type `List`, matching on ...
https://man.plustar.jp/rust/example/custom_types/enum/testcase_linked_list.html - [similar]
イテレータ - Rust By Example 日本語版 6649
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... l Iterator for Fibonacci { // We can refer to this type using Self::Item type Item = u32; // Here, we defi ... sequence using `.curr` and `.next`. // The return type is `Option<T>`: // * When the `Iterator` is finish ... ` and returned. // We use Self::Item in the return type, so we can change // the type without having to up ...
https://man.plustar.jp/rust/example/trait/iter.html - [similar]
演算子のオーバーロード - Rust By Example 日本語版 6421
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... `Add<Bar>` - the trait for addition with a RHS of type `Bar`. // The following block implements the opera ... る舞いを // もたらす。 impl ops::Add<Bar> for Foo { type Output = FooBar; fn add(self, _rhs: Bar) -> FooBar ... (Bar) was called"); FooBar } } // By reversing the types, we end up implementing non-commutative addition. ...
https://man.plustar.jp/rust/example/trait/ops.html - [similar]
列挙型 - Rust By Example 日本語版 6345
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... o classify a web event. Note how both // names and type information together specify the variant: // `Page ... ngsToDoWithNumbers { Add, Subtract, } // Creates a type alias // 型エイリアスを作成する type Operations = ... マッチ( match ) , 関数( fn ) , 文字列( String ) , "Type alias enum variants" RFC 関連キーワード: WebEvent ...
https://man.plustar.jp/rust/example/custom_types/enum.html - [similar]
エラーをラップする - Rust By Example 日本語版 6345
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... r as _; use std::num::ParseIntError; use std::fmt; type Result<T> = std::result::Result<T, DoubleError>; # ... plying extra info requires adding more data to the type. // パースエラーの実装まで処理を委譲します。 // 追 ... . // This is a wrapper, so defer to the underlying types' implementation of `fmt`. // ラップされたエラーは ...
https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
トレイト - Rust By Example 日本語版 6345
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... nction signature; `Self` refers to the implementor type. // 関連関数のシグネチャ。 // `Self` はこのトレイト ... pl Animal for Sheep { // `Self` is the implementor type: `Sheep`. // `Self`は実装対象の型: ここでは`Sheep` ... {}", self.name, self.noise()); } } fn main() { // Type annotation is necessary in this case. // この場合、 ...
https://man.plustar.jp/rust/example/trait.html - [similar]
型キャスティング - Rust By Example 日本語版 6269
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況 ... aracter); // when casting any value to an unsigned type, T, // T::MAX + 1 is added or subtracted until the ... value // fits into the new type // 何らかの値を符号なしの型(仮にTとする)へキャス ... is : {}", 1000 % 256); // When casting to a signed type, the (bitwise) result is the same as // first cast ...
https://man.plustar.jp/rust/example/types/cast.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT