検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for From (0.026 sec.)
FromおよびInto - Rust By Example 日本語版 15949
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... fault) Rust Coal Navy Ayu Rust By Example 日本語版 From および Into From トレイトと Into トレイトは本質的に ... れば、型Bから型Aへの変換もできると思うのが自然です。 From From トレイトは、ある型に対し、別の型からその型を作 ... () { let my_str = "hello"; let my_string = String::from(my_str); } 自作の型に対しても、型変換を定義すれば同 ...
https://man.plustar.jp/rust/example/conversion/from_into.html - [similar]
?の他の活用法 - Rust By Example 日本語版 10538
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... れはほぼ正解で、本当は unwrap 、もしくは return Err(From::from(err)) という意味があります。 From::from は異 ... を ? を使ったものに書き換えてみましょう。その結果、 From::from がエラー型に実装されている時 map_err は消えて ... lt は上のレベルで分解されなければなりません。 参照 From::from and ? 関連キーワード: Result , エラー , 関数 ...
https://man.plustar.jp/rust/example/error/multiple_error_types/reenter_question_... - [similar]
Rust By Example 日本語版 10538
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... teger = 7; // `i32` // A type can also be inferred from context // 型を文脈から推定することも可能 let mut ... inferred_type = 12; // Type i64 is inferred from another line // 型 i64 は次行の内容に基づいて推定 ... 32, 0.2f64, 'a', true); // Values can be extracted from the tuple using tuple indexing // インデックスを用 ...
https://man.plustar.jp/rust/example/print.html - [similar]
エラーをラップする - Rust By Example 日本語版 8605
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... f e) => Some(e), } } } // Implement the conversion from `ParseIntError` to `DoubleError`. // This will be ... れる必要がある時、自動的に`?`から呼び出される。 impl From<ParseIntError> for DoubleError { fn from(err: Pars ... licitly use the `ParseIntError` implementation of `From` (which // we defined above) in order to create a ...
https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
TryFromおよびTryInto - Rust By Example 日本語版 8485
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... lt) Rust Coal Navy Ayu Rust By Example 日本語版 TryFrom および TryInto From および Into と同様に、 TryFrom ... TryInto も型変換を行うジェネリックなトレイトです。 From / Into と異なり、 TryFrom / TryInto トレイトは失敗 ... れるので、 Result を返します。 use std::convert::TryFrom; use std::convert::TryInto; #[derive(Debug, Partia ...
https://man.plustar.jp/rust/example/conversion/try_from_try_into.html - [similar]
Documentation testing - Rust By Example 日本語版 7583
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... st important guidelines . It allows using examples from docs as complete code snippets. But using ? makes ... turns unit . The ability to hide some source lines from documentation comes to the rescue: one may write f ... = try::try_div(10, 2)?; /// # Ok(()) // returning from try_main /// # } /// # fn main() { // starting mai ...
https://man.plustar.jp/rust/example/testing/doc_testing.html - [similar]
関数 - Rust By Example 日本語版 6931
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... //fn invalid_output<'a>() -> &'a String { &String::from("foo") } // The above is invalid: `'a` must live l ... onger than the function. // Here, `&String::from("foo")` would create a `String`, followed by a // ... いため上の関数は正しくない。 // ここでは、`&String::from("foo")`は`String`のデータとそれへの参照を作り出す。 ...
https://man.plustar.jp/rust/example/scope/lifetime/fn.html - [similar]
安全でない操作 - Rust By Example 日本語版 6931
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... the compiler's. One example of this is std::slice::from_raw_parts which will create a slice given a pointe ... ctor.len(); unsafe { let my_slice: &[u32] = slice::from_raw_parts(pointer, length); assert_eq!(some_vector ... .as_slice(), my_slice); } } For slice::from_raw_parts , one of the assumptions which must be u ...
https://man.plustar.jp/rust/example/unsafe.html - [similar]
Dependencies - Rust By Example 日本語版 6801
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... uthors = ["mark"] [dependencies] clap = "2.27.1" # from crates.io # crates.ioから rand = { git = "https:// ... github.com/rust-lang-nursery/rand" } # from online repo # オンラインのレポジトリから bar = { p ... ath = "../bar" } # from a path in the local filesystem # ローカルのファイル ...
https://man.plustar.jp/rust/example/cargo/deps.html - [similar]
ドキュメンテーション - Rust By Example 日本語版 6801
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... テラル 5.3. 型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの ... nking out to separate page or anywhere. // Example from libcore/prelude #[doc(no_inline)] pub use crate::m ... c not to include this in documentation: // Example from the futures-rs library #[doc(hidden)] pub use self ... onventions RFC 1946: Relative links to other items from doc comments (intra-rustdoc links) Is there any do ...
https://man.plustar.jp/rust/example/meta/doc.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT