Module day04

Source
Expand description

ยงPassport Processing

Regular expressions are a good fit for this problem. However as the principles of this crate are to avoid external dependencies and maximize speed weโ€™ll instead hand code validation functions for each of the passport field criteria.

Functionsยง

parse
parse_block ๐Ÿ”’
part1
part2
validate_eye_color ๐Ÿ”’
validate_field ๐Ÿ”’
validate_hair_color ๐Ÿ”’
validate_height ๐Ÿ”’
validate_passport_id ๐Ÿ”’
validate_range ๐Ÿ”’

Type Aliasesยง

Passport ๐Ÿ”’