rut-lib 0.1.2

A Rust Library for validate/generate an Chilean ID (RUT)
Documentation
1
2
3
4
5
6
7
8
9
10
use rut_lib::{Format, Rut};

fn main() {
    let input = "179515857";
    let rut = Rut::from(input).unwrap();

    println!("Dots: {}", rut.to_format(Format::DOTS));
    println!("Dash: {}", rut.to_format(Format::DASH));
    println!("None: {}", rut.to_format(Format::NONE))
}