1 stable release
1.0.0 | Feb 15, 2025 |
---|
#569 in Command-line interface
130 downloads per month
3KB
hello-sayer
A Rust library for generating and printing Hello world messages.
Usage
Install the library with:
cargo add hello-sayer
The following functions are included:
generate_hello_message() -> &'static str
- Returns"Hello world!"
as a string slicesay_hello() -> ()
- Prints the string returned bygenerate_hello_message
say_hello_string(&str string) -> ()
- Prints the string slice given.say_hello_handler(fn() -> &'static str) -> ()
- Prints the string slice returned by the given handler.
Is this useless?
Yes. You can achieve the same functionality by just using the println!
macro.