isin 0.1.19

Support for creating and validating ISINs
Documentation
1
2
3
4
5
6
7
8
9
use isin::ISIN;

fn main() {
    let isin: ISIN = "US0378331005".parse().unwrap();
    println!("Parsed ISIN: {}", isin); // "US0378331005"
    println!("  Prefix: {}", isin.prefix()); // "US"
    println!("  Basic code: {}", isin.basic_code()); // "037833100"
    println!("  Check digit: {}", isin.check_digit()); // '5'
}