Function hello_lib::hello

source ·
pub fn hello<T: Display + Debug>(s: T) -> String
Expand description

Function hello accepts an argument and returns Hello !. It accepts any scalar datatype (i,u,&str,String,bool) and returns a String object. This is a simple implementation to demonstrate Generics Function.