Docs.rs
waynetest-0.1.0
waynetest 0.1.0
Permalink
Docs.rs crate page
MIT
Links
crates.io
Source
Owners
waynewyang
Dependencies
Versions
50%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
waynetest
0.1.0
add_one
Sections
Examples
In crate waynetest
waynetest
Function
add_one
Copy item path
Source
pub fn add_one(x:
i32
) ->
i32
Expand description
将给定的数字加一
§
Examples
let
five =
5
;
assert_eq!
(
6
, waynetest::add_one(
5
));