Skip to main content

validate_length_match

Function validate_length_match 

Source
pub fn validate_length_match(
    actual: usize,
    expected: usize,
    actual_name: &str,
    expected_name: &str,
) -> Result<(), OCRError>
Expand description

Validates that a vector’s length matches an expected size.

§Errors

Returns OCRError::InvalidInput if lengths don’t match.