検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 36 for Debug (0.044 sec.)
TryFromおよびTryInto - Rust By Example 日本語版 6941
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... vert::TryFrom; use std::convert::TryInto; #[derive(Debug, PartialEq)] struct EvenNumber(i32); impl TryFrom< ...
https://man.plustar.jp/rust/example/conversion/try_from_try_into.html - [similar]
エラーをBoxする - Rust By Example 日本語版 6941
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... result::Result<T, Box<dyn error::Error>>; #[derive(Debug, Clone)] struct EmptyVec; impl fmt::Display for Em ...
https://man.plustar.jp/rust/example/error/multiple_error_types/boxing_errors.htm... - [similar]
Traits - Rust By Example 日本語版 6941
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... // A struct with annotation of lifetimes. #[derive(Debug)] struct Borrowed<'a> { x: &'a i32, } // Annotate ...
https://man.plustar.jp/rust/example/scope/lifetime/trait.html - [similar]
Partial moves - Rust By Example 日本語版 6941
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... not moved) can still be used. fn main() { #[derive(Debug)] struct Person { name: String, age: u8, } let per ...
https://man.plustar.jp/rust/example/scope/move/partial_move.html - [similar]
? - Rust By Example 日本語版 6941
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... xpands to an ok expression. mod checked { #[derive(Debug)] enum MathError { DivisionByZero, NonPositiveLoga ...
https://man.plustar.jp/rust/example/std/result/question_mark.html - [similar]
他言語関数インターフェイス - Rust By Example 日本語版 6941
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... y)] struct Complex { re: f32, im: f32, } impl fmt::Debug for Complex { fn fmt(&self, f: &mut fmt::Formatter ...
https://man.plustar.jp/rust/example/std_misc/ffi.html - [similar]
Integration testing - Rust By Example 日本語版 6941
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ignored; 0 measured; 0 filtered out Running target/debug/deps/integration_test-bcd60824f5fbfe19 running 1 t ...
https://man.plustar.jp/rust/example/testing/integration_testing.html - [similar]
エラー型を定義する - Rust By Example 日本語版 6846
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... の手前で何らかの処理を挟むことができます。 #[derive(Debug, Clone)] struct DoubleError; // Generation of an e ...
https://man.plustar.jp/rust/example/error/multiple_error_types/define_error_type... - [similar]
?の他の活用法 - Rust By Example 日本語版 6846
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... result::Result<T, Box<dyn error::Error>>; #[derive(Debug)] struct EmptyVec; impl fmt::Display for EmptyVec ...
https://man.plustar.jp/rust/example/error/multiple_error_types/reenter_question_... - [similar]
エラーをラップする - Rust By Example 日本語版 6846
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... T> = std::result::Result<T, DoubleError>; #[derive(Debug)] enum DoubleError { EmptyVec, // We will defer to ...
https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
PREV 1 2 3 4 NEXT