Docs.rs
rust_demos-0.1.0
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
rust_demos 0.1.0
Aa demo crate
Crate
Source
Builds
Feature flags
Documentation
Hide files
..
bin
first.rs
issue.txt
lib.rs
main.rs
operations.rs
1
2
3
4
5
6
7
8
pub
fn
square
(
n
:
i16
)
->
i16
{
n
*
n
}
pub
fn
cube
(
n
:
i16
)
->
i16
{
n
*
n
*
n
}