validate_phone_numbers_batch

Function validate_phone_numbers_batch 

Source
pub fn validate_phone_numbers_batch<T: AsRef<str>>(
    phone_numbers: &[T],
) -> Vec<bool>
Expand description

Validate multiple phone numbers at once

§Arguments

  • phone_numbers - Slice of phone numbers to validate

§Returns

  • Vec<bool> - Vector of validation results in the same order

§Examples

use phonelib::validate_phone_numbers_batch;
 
let numbers = ["1234567890", "invalid"];
let results = validate_phone_numbers_batch(&numbers);
// Returns [true, false]