検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 10 for right (0.022 sec.)
オーバーロード - Rust By Example 日本語版 12299
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... とができます。 // `test!` will compare `$left` and `$right` // in different ways depending on how you invoke ... it: // `test!`は`$left`と`$right`を異なる呼び出し方に応じて // 比較する。 macro_rul ... よい // テンプレートの形態は自由! ($left:expr; and $right:expr) => { println!("{:?} and {:?} is {:?}", strin ... gify!($left), stringify!($right), $left && $right) }; // ^ each arm must end with ...
https://man.plustar.jp/rust/example/macros/overload.html - [similar]
構造体 - Rust By Example 日本語版 12192
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... can be specified by where the top left and bottom right // corners are in space. // 長方形は座標空間上にお ... 下隅の位置によって指定できる top_left: Point, bottom_right: Point, } fn main() { // Create struct with field ... フィールドの値を基に // 新たなpointを生成 let bottom_right = Point { x: 5.2, ..point }; // `bottom_right.y` w ... ause we used that field // from `point` // `bottom_right.y` の値は `point.y` と同一になるが、 // これは `po ...
https://man.plustar.jp/rust/example/custom_types/structs.html - [similar]
Unit testing - Rust By Example 日本語版 9349
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... f expression evaluates to false . assert_eq!(left, right) and assert_ne!(left, right) - testing left and ri ... _bad_add' panicked at 'assertion failed: `(left == right)` left: `-1`, right: `3`', src/lib.rs:21:8 note: R ...
https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
Box, スタックとヒープ - Rust By Example 日本語版 9010
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... can be specified by where its top left and bottom right // corners are in space #[allow(dead_code)] struct ... Rectangle { top_left: Point, bottom_right: Point, } fn origin() -> Point { Point { x: 0.0, y ... Rectangle = Rectangle { top_left: origin(), bottom_right: Point { x: 3.0, y: -4.0 } }; // Heap allocated re ... = Box::new(Rectangle { top_left: origin(), bottom_right: Point { x: 3.0, y: -4.0 }, }); // The output of f ...
https://man.plustar.jp/rust/example/std/box.html - [similar]
Rust By Example 日本語版 8670
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... binary, the other half doesn't", 1, 2); // You can right-align text with a specified width. This will outpu ... can be specified by where the top left and bottom right // corners are in space. // 長方形は座標空間上にお ... 下隅の位置によって指定できる top_left: Point, bottom_right: Point, } fn main() { // Create struct with field ... フィールドの値を基に // 新たなpointを生成 let bottom_right = Point { x: 5.2, ..point }; // `bottom_right.y` w ...
https://man.plustar.jp/rust/example/print.html - [similar]
ポインタとref - Rust By Example 日本語版 7991
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... a reference? `reference` was a `&` // because the right side was already a reference. This is not // a ref ... erence because the right side is not one. // いきなりリファレンスを変数に代 ...
https://man.plustar.jp/rust/example/flow_control/match/destructuring/destructure... - [similar]
New Type Idiom - Rust By Example 日本語版 7526
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... wtype idiom gives compile time guarantees that the right type of value is supplied to a program. For exampl ...
https://man.plustar.jp/rust/example/generics/new_types.html - [similar]
テストケース: 単位を扱う - Rust By Example 日本語版 7419
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 場合 Add トレイトは以下のようになります。 訳注: RHSはRight Hand Side、つまりAdd( + )演算時の右辺のことです // ...
https://man.plustar.jp/rust/example/generics/phantom/testcase_units.html - [similar]
フォーマットしてプリント - Rust By Example 日本語版 7419
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... binary, the other half doesn't", 1, 2); // You can right-align text with a specified width. This will outpu ...
https://man.plustar.jp/rust/example/hello/print.html - [similar]
refパターン - Rust By Example 日本語版 7419
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ssignment is equivalent to // an `&` borrow on the right side. // 左辺に`ref`をつけることによる借用と、右辺 ...
https://man.plustar.jp/rust/example/scope/borrow/ref.html - [similar]
PREV 1 NEXT