検索

phrase: max: clip:
target: order:
Results of 11 - 18 of about 18 for Eq (0.031 sec.)
Rust By Example 日本語版 7841
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... verb} {object}", object="the lazy dog", subject="the quick brown fox", verb="jumps over"); // Special fo ... ; // However, custom types such as this structure require more complicated // handling. This will not wo ... ibute automatically creates the implementation // required to make this `struct` printable with `fmt::De ... 。 impl fmt::Display for Structure { // This trait requires `fmt` with this exact signature. // このトレイ ...
https://man.plustar.jp/rust/example/print.html - [similar]
loopが返す値 - Rust By Example 日本語版 7412
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... if counter == 10 { break counter * 2; } }; assert_eq!(result, 20); } 関連キーワード: 関数 , Result , Ru ...
https://man.plustar.jp/rust/example/flow_control/loop/return.html - [similar]
Rc - Rust By Example 日本語版 7412
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... a: {}", Rc::strong_count(&rc_a)); // Two `Rc`s are equal if their inner values are equal println!("rc_a ... and rc_b are equal: {}", rc_a.eq(&rc_b)); // We can use methods of ...
https://man.plustar.jp/rust/example/std/rc.html - [similar]
?によるOptionのアンパック - Rust By Example 日本語版 7275
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... de: Some(61), number: 439222222, }), }), }; assert_eq!(p.work_phone_area_code(), Some(61)); } 関連キーワ ...
https://man.plustar.jp/rust/example/error/option_unwrap/question_mark.html - [similar]
DRY (Don't Repeat Yourself) - Rust By Example 日本語版 7275
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... use std::ops::{Add, Mul, Sub}; macro_rules! assert_equal_len { // The `tt` (token tree) designator is us ... =T> + Copy>(xs: &mut Vec<T>, ys: &Vec<T>) { assert_equal_len!(xs, ys, $func, $op); for (x, y) in xs.iter ... (size).collect(); super::$func(&mut x, &y); assert_eq!(x, z); } } }; } // Test `add_assign`, `mul_assign ...
https://man.plustar.jp/rust/example/macros/dry.html - [similar]
ハッシュマップ - Rust By Example 日本語版 7275
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ます。 HashMap のキーはブーリアン、整数、文字列等の Eq あるいは Hash トレイトを保持する型なら何でもOKです ...
https://man.plustar.jp/rust/example/std/hash.html - [similar]
継承(Derive) - Rust By Example 日本語版 7275
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 能なトレイトの一覧です。 型の比較に関連するトレイト: Eq , PartialEq , Ord , PartialOrd Clone , これはコピー ... ntimeters`は比較可能なタプルになる #[derive(PartialEq, PartialOrd)] struct Centimeters(f64); // `Inches` ... an't be compared; it doesn't implement the `PartialEq` trait // エラー: `Seconds`は比較できない。これは` ... PartialEq`トレイトを実装していないため //let _this_is_true = ...
https://man.plustar.jp/rust/example/trait/derive.html - [similar]
安全でない操作 - Rust By Example 日本語版 7275
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ] = slice::from_raw_parts(pointer, length); assert_eq!(some_vector.as_slice(), my_slice); } } For slice: ...
https://man.plustar.jp/rust/example/unsafe.html - [similar]
PREV 1 2 NEXT