Docs.rs
simple_add-0.1.1
simple_add 0.1.1
Permalink
Docs.rs crate page
MIT
Links
crates.io
Source
Owners
wf5440
Dependencies
Versions
100%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate simple_add
simple_
add
0.1.1
All Items
Sections
Simple Add 库
主要功能
使用示例
Crate Items
Functions
Crate
simple_
add
Copy item path
Source
Expand description
§
Simple Add 库
这是一个简单的两个数求和库。
§
主要功能
提供两个整数的加法运算
简单易用的 API
§
使用示例
use
simple_add::add;
let
result = add(
3
,
5
);
println!
(
"3 + 5 = {}"
, result);
// 输出 8
Functions
§
add
两个整数相加
add_
float
两个浮点数相加
add_
three
返回三个数的和
safe_
divide
安全除法,处理除零错误