Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.25 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.25 KB

proquint-rs Build Status Latest Version Docs Average time to resolve an issue Percentage of issues still open

Proquints are readable, pronouncable representations of identifiers. This is a Rust library for converting between them.

Proquints

Read more about proquints: https://arxiv.org/html/0901.4016

Ex. the ip address 127.0.0.1 is lusab-babad in proquint form.

Usage

extern crate proquint;

use proquint::Quintable;
use std::net::Ipv4Addr;

let home = Ipv4Addr::new(127, 0, 0, 1);
assert_eq!(home.to_quint(), "lusab-babad");

assert_eq!(u32::from_quint("rotab-vinat").unwrap(), 3141592653u32);