pub fn calculate_verifier_digits(digits: [u8; 8], branch_digits: [u8; 4]) -> VerifierDigits {
    let cnpj_digits: [u8; 12] = digits.append_array::<4>(branch_digits);
    let first_digit = calculate_verifier_digit::<12>(cnpj_digits);

    let digits_with_first_verifier: [u8; 13] = cnpj_digits.append(first_digit);
    let second_digit = calculate_verifier_digit::<13>(digits_with_first_verifier);

    (first_digit, second_digit)
}
/// Calculate both first and second verifier digits, given the `[digits]` input.
///
/// # Example
///
/// ```
/// use validbr::Cnpj;
/// use validbr::cnpj::calculate_verifier_digits;
/// use validbr::cnpj::DigitCalculationError::WrongAmountOfDigits;
///
/// assert_eq!(calculate_verifier_digits([2, 7, 1, 4, 8, 7, 3, 4], [0, 0, 0, 1]), (7, 9));
/// assert_eq!(calculate_verifier_digits([1, 2, 3, 4, 5, 6, 7, 8], [9, 0, 1, 2]), (3, 0));
/// ```
Calculate both first and second verifier digits, given the `[digits]` input.
Calculate both first and second verifier digits given the ` [ digits ] ` input .
pub fn calculate_verifier_digits(digits: [u8; 8], branch_digits: [u8; 4]) -> VerifierDigits {
    let cnpj_digits: [u8; 12] = digits.append_array::<4>(branch_digits);
    let first_digit = calculate_verifier_digit::<12>(cnpj_digits);
    let digits_with_first_verifier: [u8; 13] = cnpj_digits.append(first_digit);
    let second_digit = calculate_verifier_digit::<13>(digits_with_first_verifier);
    (first_digit, second_digit)
}
pub fn calculate_verifier_digits ( digits : [ u8 ; 8 ] , branch_digits : [ u8 ; 4 ] ) -> VerifierDigits { let cnpj_digits : [ u8 ; 12 ] = digits . append_array :: < 4 > ( branch_digits ) ; let first_digit = calculate_verifier_digit :: < 12 > ( cnpj_digits ) ; let digits_with_first_verifier : [ u8 ; 13 ] = cnpj_digits . append ( first_digit ) ; let second_digit = calculate_verifier_digit :: < 13 > ( digits_with_first_verifier ) ; ( first_digit , second_digit ) }
Calculate both first and second verifier digits, given the `[digits]` input.
Calculate both first and second verifier digits given the ` [ digits ] ` input .
digits
[u8; 8]
branch_digits
[u8; 4]
example
```
use validbr::Cnpj;
use validbr::cnpj::calculate_verifier_digits;
use validbr::cnpj::DigitCalculationError::WrongAmountOfDigits.


` ` ` use validbr :: Cnpj ; use validbr :: cnpj :: calculate_verifier_digits ; use validbr :: cnpj :: DigitCalculationError :: WrongAmountOfDigits .