rufl 0.1.1

A powerful util function library for rust
Documentation

Rufl is an util function library for rust. It provides a series of useful functions to make your rust development easier.

Rufl is short for "rust util function library".

简体中文

Features

  • Powerful: supports commonly used development features, string, collection, random, file... etc.
  • Pure: keep external dependencies to a minimum.
  • Simple: well structure, test for every function.

Installation

  • cargo add ruf
[dependencies]
ruf = "0.1.1"

Example

Here takes the string function add_commas (Add comma to a number value by every 3 numbers from right. Ahead by prefix symbol.) as an example, and the rufl::string mod needs to be used.

Code:

use rufl::string;

fn main() {
    let money_amount: String = string::add_commas("1234567", "$");
    println!("current money is {}", money_amount); // current money is $1,234,567
}