#demo #generics #function

hello_lib

Demonstrate Generics Function

7 releases

0.1.6 Dec 13, 2022
0.1.5 Dec 13, 2022

#1012 in Text processing

21 downloads per month

MIT license

3KB

Library for demonstration

Usage

    // 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'));
    }

No runtime deps