imei
An IMEI number validator implemented in Rust.
= "1"
Example
Basic example:
Result:
true
Speed
This validator is designed to be as fast and efficient as possible. It uses small number types, precalculates the character conversions, and only iterates through the imei number once. The speed test in the tests directory gets the average speed of validation over 10,000,000 cycles. Typically, the validation process sub 1000th of a milisecond (practically instant!).
Features
- The
stdis enabled by default which implementserror::Errorforimei::Error. - The
serdefeature adds serialization/deserialization for theImeistruct.