1pub fn is_leap_year(year: i32) -> bool { 2 return (year % 4 == 0) && (year % 100 != 0 || year % 400 == 0); 3} 4