[][src]Function tink_core::keyset::validate_key_version

pub fn validate_key_version(
    version: u32,
    max_expected: u32
) -> Result<(), TinkError>

Check whether the given version is valid. The version is valid only if it is the range [0..max_expected].