検索

phrase: max: clip:
target: order:
Results of 1 - 2 of about 2 for adder (0.007 sec.)
Integration testing - Rust By Example 日本語版 11228
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ile src/lib.rs : // Define this in a crate called `adder`. // Assume that crate is called adder, will have ... ing, same as any other code would do. extern crate adder; #[test] fn test_add() { assert_eq!(adder::add(3, ... d; 0 ignored; 0 measured; 0 filtered out Doc-tests adder running 0 tests test result: ok. 0 passed; 0 faile ... ting, same as any other code will do. extern crate adder; // importing common module. mod common; #[test] f ...
https://man.plustar.jp/rust/example/testing/integration_testing.html - [similar]
impl Trait - Rust By Example 日本語版 7485
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... urns a function that adds `y` to its input fn make_adder_function(y: i32) -> impl Fn(i32) -> i32 { let clos ... x + y }; closure } fn main() { let plus_one = make_adder_function(1); assert_eq!(plus_one(2), 3); } You can ...
https://man.plustar.jp/rust/example/trait/impl_trait.html - [similar]
PREV 1 NEXT