ez-rust-0.1.1 is not a library.
Visit the last successful build:
ez-rust-0.1.6
ez-rust
ez to use utility functions for rust
Instalation
using cargo:
or manually by adding ez-rust = "0.1.1"
to the dependencies in the Cargo.toml
file
Utils
IO
Input
to get input using the ez::io
module use the get_input()
function
Example:
use io
Colors
to style the output on the terminal we use the ez::io::Colors
struct that contains easy to use function for styling
Example:
use Colors
Here is a list of all bg colors and fg colors:
BG | FG |
---|---|
bg_red | fg_red |
bg_yellow | fg_yellow |
bg_green | fg_green |
bg_blue | fg_blue |
bg_magenta | fg_magenta |
bg_white | fg_white |
bg_black | fg_black |
bg_reset | fg_reset |
the bg_reset() and fg_reset() reset the bg and the fg colors to default respectively |
FS
Read
reading a file using ez::fs
:
use fs
Write
writing to a file using ez::fs
:
use fs
Create
creating a file using ez::fs
:
use fs
Create and Write
creating and writing to a file using ez::fs
:
use fs