検索
Results of 11 - 20 of about 36 for Debug (0.034 sec.)
- 構造体 - Rust By Example 日本語版 7924
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
owed`自体よりも長生きでなくてはならない。 #[derive(Debug)] struct Borrowed<'a>(&'a i32); // Similarly, both...
照は構造体よりも長生きでなくてはならない。 #[derive(Debug)] struct NamedBorrowed<'a> { x: &'a i32, y: &'a i3...
あるいは`i32`への参照のいずれかとなる列挙型 #[derive(Debug)] enum Either<'a> { Num(i32), Ref(&'a i32), } fn m...
- https://man.plustar.jp/rust/example/scope/lifetime/struct.html - [similar]
- テストケース: 単位を扱う - Rust By Example 日本語版 7734
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
// 単位を定義するため、空の列挙型を作成。 #[derive(Debug, Clone, Copy)] enum Inch {} #[derive(Debug, Clone,...
めから`Clone`、`Copy`トレイトを持っている。 #[derive(Debug, Clone, Copy)] struct Length<Unit>(f64, PhantomDat...
- https://man.plustar.jp/rust/example/generics/phantom/testcase_units.html - [similar]
- Tests - Rust By Example 日本語版 7338
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
file:///nobackup/blah) Finished dev [unoptimized + debuginfo] target(s) in 0.89 secs Running target/debug/d...
file:///nobackup/blah) Finished dev [unoptimized + debuginfo] target(s) in 0.35 secs Running target/debug/d...
- https://man.plustar.jp/rust/example/cargo/test.html - [similar]
- FromおよびInto - Rust By Example 日本語版 7338
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
じように行えます。 use std::convert::From; #[derive(Debug)] struct Number { value: i32, } impl From<i32> for...
トレードオフです。 use std::convert::From; #[derive(Debug)] struct Number { value: i32, } impl From<i32> for...
- https://man.plustar.jp/rust/example/conversion/from_into.html - [similar]
- 構造体 - Rust By Example 日本語版 7338
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
持たず、ジェネリック型を扱う際に有効です。 #[derive(Debug)] struct Person { // The 'a defines a lifetime nam...
e = 27; let peter = Person { name, age }; // Print debug struct // 構造体のデバッグ表示を行う println!("{:?...
- https://man.plustar.jp/rust/example/custom_types/structs.html - [similar]
- Combinators: and_then - Rust By Example 日本語版 7338
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
には不適切な型です。 #![allow(dead_code)] #[derive(Debug)] enum Food { CordonBleu, Steak, Sushi } #[derive(...
- https://man.plustar.jp/rust/example/error/option_unwrap/and_then.html - [similar]
- スタティックライフタイム - Rust By Example 日本語版 7338
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
that owned data generally does not: use std::fmt::Debug; fn print_it( input: impl Debug + 'static ) { prin...
- https://man.plustar.jp/rust/example/scope/lifetime/static_lifetime.html - [similar]
- クローン - Rust By Example 日本語版 7338
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
resources // いかなる資源も持たない構造体 #[derive(Debug, Clone, Copy)] struct Unit; // A tuple struct with...
装する型の変数を資源として持つタプル #[derive(Clone, Debug)] struct Pair(Box<i32>, Box<i32>); fn main() { //...
- https://man.plustar.jp/rust/example/trait/clone.html - [similar]
- 演算子のオーバーロード - Rust By Example 日本語版 7338
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
す。 use std::ops; struct Foo; struct Bar; #[derive(Debug)] struct FooBar; #[derive(Debug)] struct BarFoo; /...
- https://man.plustar.jp/rust/example/trait/ops.html - [similar]
- Build Scripts - Rust By Example 日本語版 6941
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
は標準出力に出力します。出力される行は全て、 target/debug/build/<pkg>/output に書き込まれます。さらに、行頭に...
- https://man.plustar.jp/rust/example/cargo/build_scripts.html - [similar]