Expand description

The type CheckDigitAlgorithm provides an implementation of the check digit calculation as part of the SEDOL specification.

Example

use codes_check_digits::{sedol, Calculator};

let calculator = sedol::get_algorithm_instance();
assert!(calculator.is_valid("0540528"));
assert!(calculator.validate("0540528").is_ok());
assert_eq!(calculator.calculate("054052"), Ok(8));

Structs

Validate the SEDOL numbers defined by the London Stock Exchange

Functions