Crates.io | hello_lib |
lib.rs | hello_lib |
version | 0.1.6 |
source | src |
created_at | 2022-12-13 03:26:26.192189 |
updated_at | 2022-12-13 17:20:49.717904 |
description | Demonstrate Generics Function |
homepage | |
repository | https://github.com/gchandra10/hello_lib/ |
max_upload_size | |
id | 735426 |
size | 3,280 |
// Cargo.toml
[dependencies]
hello_lib = "0.1.6"
// main.rs
use hello_lib::hello;
fn main() {
println!("{}", hello("Rachel"));
println!("{}", hello(31));
println!("{}", hello(3.14));
println!("{}", hello(true));
println!("{}", hello('G'));
}