Skip to main content

validate_range

Function validate_range 

Source
pub fn validate_range(
    start: i64,
    end: i64,
    char_count: Option<i64>,
) -> Result<(), ComputerError>
Expand description

start <= end, both non-negative, and end within char_count when it was read.