[][src]Module validbr::cpf

Cpf utility functions

CPF

This module provides utility for constructing and manipulating CPF, as well as validating CPFs. If a CPF was successfully constructed with Cpf::new or Cpf::parse_str it means that the CPF is valid.

Enums

CpfCreationError
DigitCalculationError

Functions

calculate_verifier_digit

Calculates the verifier digit given input cpf_digits.

calculate_verifier_digits

Calculate both first and second verifier digits, given the digits input.