Docs.rs
bigknife_my_crate-0.1.0
bigknife_my_crate 0.1.0
Docs.rs crate page
MIT
Links
Crates.io
Source
Owners
bigknife
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
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
In bigknife_my_crate
?
Function
bigknife_my_crate
::
add_one
source
·
[
−
]
pub fn add_one(x:
i32
) ->
i32
Expand description
对给定的数字加1
范例
let
five =
5
;
assert_eq!
(
6
, my_crate::add_one(
5
));