Searched refs:set_if_consistent (Results 1 – 1 of 1) sorted by relevance
/external/rust/crates/chrono/src/format/ |
D | parsed.rs | 116 fn set_if_consistent<T: PartialEq>(old: &mut Option<T>, new: T) -> ParseResult<()> { in set_if_consistent() function 166 set_if_consistent(&mut self.year, value.to_i32().ok_or(OUT_OF_RANGE)?) in set_year() 175 set_if_consistent(&mut self.year_div_100, value.to_i32().ok_or(OUT_OF_RANGE)?) in set_year_div_100() 184 set_if_consistent(&mut self.year_mod_100, value.to_i32().ok_or(OUT_OF_RANGE)?) in set_year_mod_100() 190 set_if_consistent(&mut self.isoyear, value.to_i32().ok_or(OUT_OF_RANGE)?) in set_isoyear() 199 set_if_consistent(&mut self.isoyear_div_100, value.to_i32().ok_or(OUT_OF_RANGE)?) in set_isoyear_div_100() 208 set_if_consistent(&mut self.isoyear_mod_100, value.to_i32().ok_or(OUT_OF_RANGE)?) in set_isoyear_mod_100() 214 set_if_consistent(&mut self.month, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_month() 220 set_if_consistent(&mut self.week_from_sun, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_week_from_sun() 226 set_if_consistent(&mut self.week_from_mon, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_week_from_mon() [all …]
|